#D02CB7#D02CB7

#D02CB7 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.3% C 0.239 H 335.4°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#D02CB7
RGBrgb(208, 44, 183)
HSLhsl(309, 65%, 49%)
HSVhsv(309, 79%, 82%)
CMYKcmyk(0%, 78.8%, 12%, 18.4%)
CIE-LABlab(50.26, 74.36, -36.40)
CIE-LCHlch(50.26, 82.79, 333.92°)
OKLaboklab(60.3% 0.2177 -0.0995)
OKLCHoklch(60.3% 0.239 335.4)
XYZxyz(35.4609, 18.6335, 46.5196)
Luminance0.1863 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D02CB7 #2CD045
analogous
#972CD0 #D02CB7 #D02C65
triadic
#D02CB7 #B7D02C #2CB7D0
tetradic
#D02CB7 #D0972C #2CD045 #2C65D0
square
#D02CB7 #D0972C #2CD045 #2C65D0
split-complementary
#D02CB7 #65D02C #2CD097
monochromatic
#6B175E #9D218B #D02CB7 #DD5DC9 #E78FDA

Accessibility & contrast

On white

4.44
#D02CB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#D02CB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D02CB7
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D02CB7#FFFFFF#000000##000000
##D02CB71.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C68BB
Deuteranopia (green-blind)
#6A80B3
Tritanopia (blue-blind)
#DB3B71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #d02cb7;
/* rgb */ color: rgb(208, 44, 183);
/* oklch */ color: oklch(60.3% 0.239 335.4);
Tailwind
colors: {
  custom: {
    50: '#e379cd',
    500: '#d02cb7',
    950: '#000000',
  },
}
SCSS
$custom: #d02cb7;
$custom-light: #e379cd;
$custom-dark: #000000;
JSON
{
  "hex": "#d02cb7",
  "rgb": {
    "r": 208,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 309.146,
    "s": 65.079,
    "l": 49.412
  },
  "oklch": {
    "l": 0.60304,
    "c": 0.23939,
    "h": 335.4
  },
  "luminance": 0.1863
}

Semantic roles & 50–950 ramp

primary
#D02CB7
secondary
#86D292
accent
#E85940
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160A13
muted
#847C82

Preview Lab

Preview with #D02CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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