#D040CA#D040CA

#D040CA is a light, highly saturated purple. Relative luminance 0.213; OKLCH L 62.8% C 0.233 H 329.7°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#D040CA
RGBrgb(208, 64, 202)
HSLhsl(303, 61%, 53%)
HSVhsv(303, 69%, 82%)
CMYKcmyk(0%, 69.2%, 2.9%, 18.4%)
CIE-LABlab(53.32, 71.16, -42.56)
CIE-LCHlch(53.32, 82.92, 329.12°)
OKLaboklab(62.82% 0.201 -0.1174)
OKLCHoklch(62.82% 0.233 329.7)
XYZxyz(38.5062, 21.3438, 57.9573)
Luminance0.2134 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040CA #40D046
analogous
#8E40D0 #D040CA #D04082
triadic
#D040CA #CAD040 #40CAD0
tetradic
#D040CA #D08E40 #40D046 #4082D0
square
#D040CA #D08E40 #40D046 #4082D0
split-complementary
#D040CA #82D040 #40D08E
monochromatic
#781E74 #A92AA4 #D040CA #DC71D8 #E8A2E5

Accessibility & contrast

On white

3.99
#D040CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#D040CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040CA
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040CA#FFFFFF#000000##000000
##D040CA1.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3073CE
Deuteranopia (green-blind)
#6986C6
Tritanopia (blue-blind)
#D75381
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d040ca;
/* rgb */ color: rgb(208, 64, 202);
/* oklch */ color: oklch(62.8% 0.233 329.7);
Tailwind
colors: {
  custom: {
    50: '#e281da',
    500: '#d040ca',
    950: '#000000',
  },
}
SCSS
$custom: #d040ca;
$custom-light: #e281da;
$custom-dark: #000000;
JSON
{
  "hex": "#d040ca",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 302.5,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.62817,
    "c": 0.23279,
    "h": 329.7
  },
  "luminance": 0.21341
}

Semantic roles & 50–950 ramp

primary
#D040CA
secondary
#97D59A
accent
#E44B44
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #D040CA

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

Preview Lab → · Contrast checker → · Palette generator →

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