#D02DC4#D02DC4

#D02DC4 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 61.1% C 0.247 H 331.5°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#D02DC4
RGBrgb(208, 45, 196)
HSLhsl(304, 64%, 50%)
HSVhsv(304, 78%, 82%)
CMYKcmyk(0%, 78.4%, 5.8%, 18.4%)
CIE-LABlab(51.01, 75.98, -42.77)
CIE-LCHlch(51.01, 87.19, 330.62°)
OKLaboklab(61.06% 0.2174 -0.1179)
OKLCHoklch(61.06% 0.247 331.5)
XYZxyz(36.9147, 19.2753, 53.9901)
Luminance0.1927 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D02DC4 #2DD039
analogous
#8A2DD0 #D02DC4 #D02D73
triadic
#D02DC4 #C4D02D #2DC4D0
tetradic
#D02DC4 #D08A2D #2DD039 #2D73D0
square
#D02DC4 #D08A2D #2DD039 #2D73D0
split-complementary
#D02DC4 #73D02D #2DD08A
monochromatic
#6B1765 #9E2295 #D02DC4 #DC5ED3 #E790E1

Accessibility & contrast

On white

4.33
#D02DC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#D02DC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D02DC4
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D02DC4#FFFFFF#000000##000000
##D02DC41.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A6BC8
Deuteranopia (green-blind)
#6481C0
Tritanopia (blue-blind)
#D94378
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #d02dc4;
/* rgb */ color: rgb(208, 45, 196);
/* oklch */ color: oklch(61.1% 0.247 331.5);
Tailwind
colors: {
  custom: {
    50: '#e379d6',
    500: '#d02dc4',
    950: '#000000',
  },
}
SCSS
$custom: #d02dc4;
$custom-light: #e379d6;
$custom-dark: #000000;
JSON
{
  "hex": "#d02dc4",
  "rgb": {
    "r": 208,
    "g": 45,
    "b": 196
  },
  "hsl": {
    "h": 304.417,
    "s": 64.427,
    "l": 49.608
  },
  "oklch": {
    "l": 0.61057,
    "c": 0.2473,
    "h": 331.5
  },
  "luminance": 0.19272
}

Semantic roles & 50–950 ramp

primary
#D02DC4
secondary
#87D28D
accent
#E74D40
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160A14
muted
#847C83

Preview Lab

Preview with #D02DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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