#D040C6#D040C6

#D040C6 is a light, highly saturated purple. Relative luminance 0.212; OKLCH L 62.6% C 0.230 H 330.9°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#D040C6
RGBrgb(208, 64, 198)
HSLhsl(304, 61%, 53%)
HSVhsv(304, 69%, 82%)
CMYKcmyk(0%, 69.2%, 4.8%, 18.4%)
CIE-LABlab(53.12, 70.53, -40.58)
CIE-LCHlch(53.12, 81.38, 330.08°)
OKLaboklab(62.61% 0.2008 -0.1117)
OKLCHoklch(62.61% 0.23 330.9)
XYZxyz(38.0388, 21.1568, 55.4954)
Luminance0.2115 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040C6 #40D04A
analogous
#9240D0 #D040C6 #D0407E
triadic
#D040C6 #C6D040 #40C6D0
tetradic
#D040C6 #D09240 #40D04A #407ED0
square
#D040C6 #D09240 #40D04A #407ED0
split-complementary
#D040C6 #7ED040 #40D092
monochromatic
#781E72 #A92AA0 #D040C6 #DC71D5 #E8A2E3

Accessibility & contrast

On white

4.01
#D040C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#D040C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040C6
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040C6#FFFFFF#000000##000000
##D040C61.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3472CA
Deuteranopia (green-blind)
#6B86C2
Tritanopia (blue-blind)
#D8517E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d040c6;
/* rgb */ color: rgb(208, 64, 198);
/* oklch */ color: oklch(62.6% 0.230 330.9);
Tailwind
colors: {
  custom: {
    50: '#e281d8',
    500: '#d040c6',
    950: '#000000',
  },
}
SCSS
$custom: #d040c6;
$custom-light: #e281d8;
$custom-dark: #000000;
JSON
{
  "hex": "#d040c6",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 304.167,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.62605,
    "c": 0.22981,
    "h": 330.9
  },
  "luminance": 0.21154
}

Semantic roles & 50–950 ramp

primary
#D040C6
secondary
#97D59B
accent
#E44F44
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D040C6

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

Preview Lab → · Contrast checker → · Palette generator →

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