CSS named color

Pale Violet Red #DB7093

The CSS keyword palevioletred is #DB7093. It is a light soft pink in the pink family. In OKLCH it sits at lightness 0.678, chroma 0.138 and hue 0.7°.

Relative luminance
0.2875
OKLCH L · C · h
0.678 · 0.138 · 0.7
Best text
Black 6.75:1
Hue family
Pink

#DB7093 color codes

HEX
#DB7093
RGB
rgb(219, 112, 147)
HSL
hsl(340, 60%, 65%)
OKLCH
oklch(0.678 0.138 0.7)
OKLab
oklab(0.678 0.138 0.002)
CIELAB (D65)
L* 60.57, a* 45.52, b* 0.40
XYZ (D65)
X 40.28, Y 28.76, Z 31.03
CMYK (naive)
cmyk(0%, 49%, 33%, 14%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #DB7093 accessible?

Black text on it reaches 6.75:1, passing AA. White text manages only 3.11:1, enough for large text only.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    6.75:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc +46
  • White text on it

    3.11:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc −63
  • As text on black

    6.75:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc −44
  • As text on white

    3.11:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc +57

Nearest versions that pass 4.5:1

  • For text on white

    #BB5377 4.54:1

    Darkening its OKLCH lightness from 0.68 to 0.58 reaches 4.54:1 on white, keeping the hue.

  • For text on black

    #DB7093 6.75:1

    It already reaches 6.75:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #DB7093 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #DB7093

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #DB7093 sits at step 400.

  1. 50#FFF1F4
    White
    1.09
    Black
    19.14
  2. 100#FFE3EA
    White
    1.20
    Black
    17.42
  3. 200#FFC5D5
    White
    1.47
    Black
    14.19
  4. 300#FF9BB9
    White
    1.97
    Black
    10.64
  5. 400This color#DB7093
    White
    3.11
    Black
    6.75
  6. 500#C75E82
    White
    3.92
    Black
    5.35
  7. 600#AC466A
    White
    5.47
    Black
    3.83
  8. 700#903054
    White
    7.67
    Black
    2.73
  9. 800#71173C
    White
    11.11
    Black
    1.88
  10. 900#510026
    White
    15.24
    Black
    1.37
  11. 950#300014
    White
    18.48
    Black
    1.13

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #DB7093 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.230; #DB7093 uses 60% of it. Display P3, which many recent phones and laptops show, reaches 0.295 there: 28% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.138
sRGB edge
0.230
Display P3 edge
0.295
Rec. 2020 edge
0.363
Dominant wavelength
Complementary 497 nm
Excitation purity
32%
Chromaticity
x 0.4025, y 0.2874
  • This color#DB7093
  • Most vivid in sRGB#FF4290
  • Most vivid in Display P3oklch(0.678 0.295 0.7)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #db7093;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 1 0.1316 0.5517); }
}

Mixing

Mixing #DB7093

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#EDB8C9
  • OKLab50%#F1B8C8
  • OKLCH50%#F1B8C8

Black #000000

  • sRGB50%#6E384A
  • OKLab50%#542736
  • OKLCH50%#542736

Its complement #00B09B

  • sRGB50%#6E9097
  • OKLab50%#9C9697
  • OKLCH50%#B6931E
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #db7093, white);
color: color-mix(in oklch, #db7093 50%, white);

In use

#DB7093 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:16.75:1 Passes
  • Link and body-size textText, 4.5:13.11:1 Fails
  • Large headingLarge text, 3:13.11:1 Passes
  • Icons, borders and focus ringsNon-text, 3:13.11:1 Passes

For text on this page, the nearest shade that passes is #BB5377 4.54:1

Dark page

  • Button labelText, 4.5:16.75:1 Passes
  • Link and body-size textText, 4.5:16.02:1 Passes
  • Large headingLarge text, 3:16.02:1 Passes
  • Icons, borders and focus ringsNon-text, 3:16.02:1 Passes

Color vision

How #DB7093 looks with color blindness

Deuteranopia changes it most, ΔE2000 28.6; tritanopia changes it least, 6.9.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #818694 ΔE2000 25.8

    Distinct

    Reads as grayish blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #9C9A91 ΔE2000 28.6

    Distinct

    Reads as gray

  • Tritanopia

    No working blue (short-wavelength) cones

    #EA687D ΔE2000 6.9

    Noticeable

    Reads as light soft pink

  • Achromatopsia

    No cone color vision; lightness only

    #929292 ΔE2000 24.6

    Distinct

    Reads as gray

Pairing check

Checked against its complement, #00B09B. Their lightness contrast is only 1.13:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#DB7093 · #00B09B62.8Stays distinct
Protanopia#818694 · #A8A59A16.5Stays distinct
Deuteranopia#9C9A91 · #95979D8.1Harder to tell apart
Tritanopia#EA687D · #00B3AA61.3Stays distinct
Achromatopsia#929292 · #9C9C9C3.2Easily confused

Harmony

Color harmonies for #DB7093

Its complement is #00B09B, a light soft cyan, on the cool side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#DB7093
  • Complement#00B09B

Complementary

Open in Harmony Studio
  • −30°#C776BF
  • Base#DB7093
  • +30°#E07462
  • Base#DB7093
  • +120°#8CA434
  • +240°#33A1E4
  • Base#DB7093
  • +150°#4DAF6A
  • +210°#00AAC0

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-palevioletred: #db7093;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        palevioletred: '#db7093',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-palevioletred: oklch(0.678 0.138 0.7);
}

Design token (W3C DTCG)

{
  "color": {
    "palevioletred": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.8588, 0.4392, 0.5765],
        "hex": "#db7093"
      },
      "$description": "CSS named color palevioletred"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let palevioletred = Color(.sRGB, red: 0.859, green: 0.439, blue: 0.576, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Palevioletred = Color(0xFFDB7093)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #DB7093 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.