#D04DEC#D04DEC

#D04DEC is a light, highly saturated purple. Relative luminance 0.248; OKLCH L 65.9% C 0.245 H 320.1°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#D04DEC
RGBrgb(208, 77, 236)
HSLhsl(289, 81%, 61%)
HSVhsv(289, 67%, 93%)
CMYKcmyk(11.9%, 67.4%, 0%, 7.5%)
CIE-LABlab(56.86, 72.18, -56.21)
CIE-LCHlch(56.86, 91.49, 322.09°)
OKLaboklab(65.95% 0.1878 -0.1573)
OKLCHoklch(65.95% 0.245 320.1)
XYZxyz(43.8048, 24.7759, 81.8155)
Luminance0.2477 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D04DEC #69EC4D
analogous
#814DEC #D04DEC #EC4DB9
triadic
#D04DEC #ECD04D #4DECD0
tetradic
#D04DEC #EC814D #69EC4D #4DB9EC
square
#D04DEC #EC814D #69EC4D #4DB9EC
split-complementary
#D04DEC #B9EC4D #4DEC81
monochromatic
#9112AC #C018E4 #D04DEC #DF84F2 #EDBCF8

Accessibility & contrast

On white

3.53
#D04DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#D04DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D04DEC
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D04DEC#FFFFFF#000000##000000
##D04DEC1.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#087FF1
Deuteranopia (green-blind)
#5B8DE8
Tritanopia (blue-blind)
#D16A97
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #d04dec;
/* rgb */ color: rgb(208, 77, 236);
/* oklch */ color: oklch(65.9% 0.245 320.1);
Tailwind
colors: {
  custom: {
    50: '#e289f3',
    500: '#d04dec',
    950: '#000000',
  },
}
SCSS
$custom: #d04dec;
$custom-light: #e289f3;
$custom-dark: #000000;
JSON
{
  "hex": "#d04dec",
  "rgb": {
    "r": 208,
    "g": 77,
    "b": 236
  },
  "hsl": {
    "h": 289.434,
    "s": 80.711,
    "l": 61.373
  },
  "oklch": {
    "l": 0.65949,
    "c": 0.24493,
    "h": 320.1
  },
  "luminance": 0.24774
}

Semantic roles & 50–950 ramp

primary
#D04DEC
secondary
#B7E8AD
accent
#DD082E
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#160C17
muted
#847D85

Preview Lab

Preview with #D04DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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