#D040CB#D040CB

#D040CB is a light, highly saturated purple. Relative luminance 0.214; OKLCH L 62.9% C 0.234 H 329.4°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#D040CB
RGBrgb(208, 64, 203)
HSLhsl(302, 61%, 53%)
HSVhsv(302, 69%, 82%)
CMYKcmyk(0%, 69.2%, 2.4%, 18.4%)
CIE-LABlab(53.38, 71.32, -43.05)
CIE-LCHlch(53.38, 83.31, 328.88°)
OKLaboklab(62.87% 0.201 -0.1189)
OKLCHoklch(62.87% 0.234 329.4)
XYZxyz(38.6250, 21.3913, 58.5829)
Luminance0.2139 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040CB #40D045
analogous
#8D40D0 #D040CB #D04083
triadic
#D040CB #CBD040 #40CBD0
tetradic
#D040CB #D08D40 #40D045 #4083D0
square
#D040CB #D08D40 #40D045 #4083D0
split-complementary
#D040CB #83D040 #40D08D
monochromatic
#781E75 #A92AA5 #D040CB #DC71D8 #E8A2E6

Accessibility & contrast

On white

3.98
#D040CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#D040CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040CB
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040CB#FFFFFF#000000##000000
##D040CB1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E73CF
Deuteranopia (green-blind)
#6886C7
Tritanopia (blue-blind)
#D75381
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d040cb;
/* rgb */ color: rgb(208, 64, 203);
/* oklch */ color: oklch(62.9% 0.234 329.4);
Tailwind
colors: {
  custom: {
    50: '#e281db',
    500: '#d040cb',
    950: '#000000',
  },
}
SCSS
$custom: #d040cb;
$custom-light: #e281db;
$custom-dark: #000000;
JSON
{
  "hex": "#d040cb",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 302.083,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.62871,
    "c": 0.23354,
    "h": 329.4
  },
  "luminance": 0.21388
}

Semantic roles & 50–950 ramp

primary
#D040CB
secondary
#97D599
accent
#E44A44
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #D040CB

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D040CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva