#D02ECF#D02ECF

#D02ECF is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.7% C 0.254 H 328.4°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#D02ECF
RGBrgb(208, 46, 207)
HSLhsl(300, 64%, 50%)
HSVhsv(300, 78%, 82%)
CMYKcmyk(0%, 77.9%, 0.5%, 18.4%)
CIE-LABlab(51.69, 77.38, -48.02)
CIE-LCHlch(51.69, 91.07, 328.18°)
OKLaboklab(61.74% 0.2165 -0.1332)
OKLCHoklch(61.74% 0.254 328.4)
XYZxyz(38.2515, 19.8718, 60.8404)
Luminance0.1987 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D02ECF #2ED02F
analogous
#802ED0 #D02ECF #D02E7E
triadic
#D02ECF #CFD02E #2ECFD0
tetradic
#D02ECF #D0802E #2ED02F #2E7ED0
square
#D02ECF #D0802E #2ED02F #2E7ED0
split-complementary
#D02ECF #7ED02E #2ED080
monochromatic
#6C186B #9E239D #D02ECF #DC5FDB #E792E6

Accessibility & contrast

On white

4.22
#D02ECF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#D02ECF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D02ECF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D02ECF#FFFFFF#000000##000000
##D02ECF1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#5E82CB
Tritanopia (blue-blind)
#D74A7F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d02ecf;
/* rgb */ color: rgb(208, 46, 207);
/* oklch */ color: oklch(61.7% 0.254 328.4);
Tailwind
colors: {
  custom: {
    50: '#e37ade',
    500: '#d02ecf',
    950: '#000000',
  },
}
SCSS
$custom: #d02ecf;
$custom-light: #e37ade;
$custom-dark: #000000;
JSON
{
  "hex": "#d02ecf",
  "rgb": {
    "r": 208,
    "g": 46,
    "b": 207
  },
  "hsl": {
    "h": 300.37,
    "s": 63.78,
    "l": 49.804
  },
  "oklch": {
    "l": 0.61736,
    "c": 0.25416,
    "h": 328.4
  },
  "luminance": 0.19869
}

Semantic roles & 50–950 ramp

primary
#D02ECF
secondary
#88D289
accent
#E74241
background
#FEF8FD
surface
#FDEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #D02ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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