#D02DC1#D02DC1

#D02DC1 is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.9% C 0.245 H 332.4°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#D02DC1
RGBrgb(208, 45, 193)
HSLhsl(306, 64%, 50%)
HSVhsv(306, 78%, 82%)
CMYKcmyk(0%, 78.4%, 7.2%, 18.4%)
CIE-LABlab(50.85, 75.53, -41.28)
CIE-LCHlch(50.85, 86.08, 331.34°)
OKLaboklab(60.89% 0.2173 -0.1136)
OKLCHoklch(60.89% 0.245 332.4)
XYZxyz(36.5766, 19.1401, 52.2097)
Luminance0.1914 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D02DC1 #2DD03C
analogous
#8D2DD0 #D02DC1 #D02D70
triadic
#D02DC1 #C1D02D #2DC1D0
tetradic
#D02DC1 #D08D2D #2DD03C #2D70D0
square
#D02DC1 #D08D2D #2DD03C #2D70D0
split-complementary
#D02DC1 #70D02D #2DD08D
monochromatic
#6B1764 #9E2292 #D02DC1 #DC5ED1 #E790DF

Accessibility & contrast

On white

4.35
#D02DC1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#D02DC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D02DC1
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D02DC1#FFFFFF#000000##000000
##D02DC11.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#206BC5
Deuteranopia (green-blind)
#6681BD
Tritanopia (blue-blind)
#D94277
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #d02dc1;
/* rgb */ color: rgb(208, 45, 193);
/* oklch */ color: oklch(60.9% 0.245 332.4);
Tailwind
colors: {
  custom: {
    50: '#e379d4',
    500: '#d02dc1',
    950: '#000000',
  },
}
SCSS
$custom: #d02dc1;
$custom-light: #e379d4;
$custom-dark: #000000;
JSON
{
  "hex": "#d02dc1",
  "rgb": {
    "r": 208,
    "g": 45,
    "b": 193
  },
  "hsl": {
    "h": 305.521,
    "s": 64.427,
    "l": 49.608
  },
  "oklch": {
    "l": 0.60894,
    "c": 0.24524,
    "h": 332.4
  },
  "luminance": 0.19137
}

Semantic roles & 50–950 ramp

primary
#D02DC1
secondary
#87D28E
accent
#E75040
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160A14
muted
#847C83

Preview Lab

Preview with #D02DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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