#D02CC2#D02CC2

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

Color values

HEX#D02CC2
RGBrgb(208, 44, 194)
HSLhsl(305, 65%, 49%)
HSVhsv(305, 79%, 82%)
CMYKcmyk(0%, 78.8%, 6.7%, 18.4%)
CIE-LABlab(50.81, 75.93, -41.92)
CIE-LCHlch(50.81, 86.74, 331.10°)
OKLaboklab(60.89% 0.2181 -0.1154)
OKLCHoklch(60.89% 0.247 332.1)
XYZxyz(36.6508, 19.1094, 52.7867)
Luminance0.1911 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D02CC2 #2CD03A
analogous
#8C2CD0 #D02CC2 #D02C70
triadic
#D02CC2 #C2D02C #2CC2D0
tetradic
#D02CC2 #D08C2C #2CD03A #2C70D0
square
#D02CC2 #D08C2C #2CD03A #2C70D0
split-complementary
#D02CC2 #70D02C #2CD08C
monochromatic
#6B1764 #9D2193 #D02CC2 #DD5DD2 #E78FE0

Accessibility & contrast

On white

4.36
#D02CC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#D02CC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D02CC2
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D02CC2#FFFFFF#000000##000000
##D02CC21.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D6AC6
Deuteranopia (green-blind)
#6581BE
Tritanopia (blue-blind)
#D94177
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #d02cc2;
/* rgb */ color: rgb(208, 44, 194);
/* oklch */ color: oklch(60.9% 0.247 332.1);
Tailwind
colors: {
  custom: {
    50: '#e379d5',
    500: '#d02cc2',
    950: '#000000',
  },
}
SCSS
$custom: #d02cc2;
$custom-light: #e379d5;
$custom-dark: #000000;
JSON
{
  "hex": "#d02cc2",
  "rgb": {
    "r": 208,
    "g": 44,
    "b": 194
  },
  "hsl": {
    "h": 305.122,
    "s": 65.079,
    "l": 49.412
  },
  "oklch": {
    "l": 0.60885,
    "c": 0.24676,
    "h": 332.1
  },
  "luminance": 0.19106
}

Semantic roles & 50–950 ramp

primary
#D02CC2
secondary
#86D28D
accent
#E84E40
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160A14
muted
#847C83

Preview Lab

Preview with #D02CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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