#D040C1#D040C1

#D040C1 is a light, highly saturated purple. Relative luminance 0.209; OKLCH L 62.3% C 0.226 H 332.5°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#D040C1
RGBrgb(208, 64, 193)
HSLhsl(306, 61%, 53%)
HSVhsv(306, 69%, 82%)
CMYKcmyk(0%, 69.2%, 7.2%, 18.4%)
CIE-LABlab(52.87, 69.76, -38.09)
CIE-LCHlch(52.87, 79.48, 331.36°)
OKLaboklab(62.35% 0.2005 -0.1045)
OKLCHoklch(62.35% 0.226 332.5)
XYZxyz(37.4716, 20.9300, 52.5081)
Luminance0.2093 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040C1 #40D04F
analogous
#9740D0 #D040C1 #D04079
triadic
#D040C1 #C1D040 #40C1D0
tetradic
#D040C1 #D09740 #40D04F #4079D0
square
#D040C1 #D09740 #40D04F #4079D0
split-complementary
#D040C1 #79D040 #40D097
monochromatic
#781E6F #A92A9C #D040C1 #DC71D1 #E8A2E1

Accessibility & contrast

On white

4.05
#D040C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#D040C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040C1
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040C1#FFFFFF#000000##000000
##D040C11.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3971C5
Deuteranopia (green-blind)
#6D85BD
Tritanopia (blue-blind)
#D94E7C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d040c1;
/* rgb */ color: rgb(208, 64, 193);
/* oklch */ color: oklch(62.3% 0.226 332.5);
Tailwind
colors: {
  custom: {
    50: '#e281d4',
    500: '#d040c1',
    950: '#000000',
  },
}
SCSS
$custom: #d040c1;
$custom-light: #e281d4;
$custom-dark: #000000;
JSON
{
  "hex": "#d040c1",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 306.25,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.62346,
    "c": 0.22613,
    "h": 332.5
  },
  "luminance": 0.20927
}

Semantic roles & 50–950 ramp

primary
#D040C1
secondary
#97D59D
accent
#E45544
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D040C1

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

Preview Lab → · Contrast checker → · Palette generator →

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