#D02DF2#D02DF2

#D02DF2 is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 63.8% C 0.281 H 319.6°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#D02DF2
RGBrgb(208, 45, 242)
HSLhsl(290, 88%, 56%)
HSVhsv(290, 81%, 95%)
CMYKcmyk(14%, 81.4%, 0%, 5.1%)
CIE-LABlab(53.71, 83.30, -64.63)
CIE-LCHlch(53.71, 105.43, 322.20°)
OKLaboklab(63.83% 0.2138 -0.1817)
OKLCHoklch(63.83% 0.281 319.6)
XYZxyz(42.9758, 21.6997, 85.9120)
Luminance0.2170 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D02DF2 #4FF22D
analogous
#6E2DF2 #D02DF2 #F22DB1
triadic
#D02DF2 #F2D02D #2DF2D0
tetradic
#D02DF2 #F26E2D #4FF22D #2DB1F2
square
#D02DF2 #F26E2D #4FF22D #2DB1F2
split-complementary
#D02DF2 #B1F22D #2DF26E
monochromatic
#820A9B #B20DD5 #D02DF2 #DD67F6 #EAA0F9

Accessibility & contrast

On white

3.93
#D02DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#D02DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D02DF2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D02DF2#FFFFFF#000000##000000
##D02DF21.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076F7
Deuteranopia (green-blind)
#4085EE
Tritanopia (blue-blind)
#D05C93
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d02df2;
/* rgb */ color: rgb(208, 45, 242);
/* oklch */ color: oklch(63.8% 0.281 319.6);
Tailwind
colors: {
  custom: {
    50: '#e37bf7',
    500: '#d02df2',
    950: '#000000',
  },
}
SCSS
$custom: #d02df2;
$custom-light: #e37bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#d02df2",
  "rgb": {
    "r": 208,
    "g": 45,
    "b": 242
  },
  "hsl": {
    "h": 289.645,
    "s": 88.341,
    "l": 56.275
  },
  "oklch": {
    "l": 0.6383,
    "c": 0.28058,
    "h": 319.6
  },
  "luminance": 0.21697
}

Semantic roles & 50–950 ramp

primary
#D02DF2
secondary
#A3E695
accent
#FE294E
background
#FEF8FF
surface
#FDEFFF
border
#D5CAD7
text
#160B17
muted
#847C85

Preview Lab

Preview with #D02DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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