#D040C7#D040C7

#D040C7 is a light, highly saturated purple. Relative luminance 0.212; OKLCH L 62.7% C 0.231 H 330.6°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#D040C7
RGBrgb(208, 64, 199)
HSLhsl(304, 61%, 53%)
HSVhsv(304, 69%, 82%)
CMYKcmyk(0%, 69.2%, 4.3%, 18.4%)
CIE-LABlab(53.17, 70.69, -41.08)
CIE-LCHlch(53.17, 81.76, 329.84°)
OKLaboklab(62.66% 0.2009 -0.1132)
OKLCHoklch(62.66% 0.231 330.6)
XYZxyz(38.1545, 21.2031, 56.1048)
Luminance0.2120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040C7 #40D049
analogous
#9140D0 #D040C7 #D0407F
triadic
#D040C7 #C7D040 #40C7D0
tetradic
#D040C7 #D09140 #40D049 #407FD0
square
#D040C7 #D09140 #40D049 #407FD0
split-complementary
#D040C7 #7FD040 #40D091
monochromatic
#781E72 #A92AA1 #D040C7 #DC71D5 #E8A2E4

Accessibility & contrast

On white

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

On black

5.24
#D040C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040C7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040C7#FFFFFF#000000##000000
##D040C71.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3372CB
Deuteranopia (green-blind)
#6B86C3
Tritanopia (blue-blind)
#D8517F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d040c7;
/* rgb */ color: rgb(208, 64, 199);
/* oklch */ color: oklch(62.7% 0.231 330.6);
Tailwind
colors: {
  custom: {
    50: '#e281d8',
    500: '#d040c7',
    950: '#000000',
  },
}
SCSS
$custom: #d040c7;
$custom-light: #e281d8;
$custom-dark: #000000;
JSON
{
  "hex": "#d040c7",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 303.75,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.62658,
    "c": 0.23055,
    "h": 330.6
  },
  "luminance": 0.212
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D040C7

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

Preview Lab → · Contrast checker → · Palette generator →

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