#D04FF5#D04FF5

#D04FF5 is a light, highly saturated purple. Relative luminance 0.256; OKLCH L 66.7% C 0.250 H 317.8°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#D04FF5
RGBrgb(208, 79, 245)
HSLhsl(287, 89%, 64%)
HSVhsv(287, 68%, 96%)
CMYKcmyk(15.1%, 67.8%, 0%, 3.9%)
CIE-LABlab(57.65, 73.06, -59.96)
CIE-LCHlch(57.65, 94.51, 320.62°)
OKLaboklab(66.69% 0.1853 -0.1682)
OKLCHoklch(66.69% 0.25 317.8)
XYZxyz(45.2875, 25.5964, 88.9236)
Luminance0.2559 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D04FF5 #74F54F
analogous
#7D4FF5 #D04FF5 #F54FC7
triadic
#D04FF5 #F5D04F #4FF5D0
tetradic
#D04FF5 #F57D4F #74F54F #4FC7F5
square
#D04FF5 #F57D4F #74F54F #4FC7F5
split-complementary
#D04FF5 #C7F54F #4FF57D
monochromatic
#970BBF #C115F2 #D04FF5 #DF89F8 #EFC3FC

Accessibility & contrast

On white

3.43
#D04FF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#D04FF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D04FF5
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D04FF5#FFFFFF#000000##000000
##D04FF51.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FA
Deuteranopia (green-blind)
#558EF1
Tritanopia (blue-blind)
#CF6F9C
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #d04ff5;
/* rgb */ color: rgb(208, 79, 245);
/* oklch */ color: oklch(66.7% 0.250 317.8);
Tailwind
colors: {
  custom: {
    50: '#e28af9',
    500: '#d04ff5',
    950: '#000000',
  },
}
SCSS
$custom: #d04ff5;
$custom-light: #e28af9;
$custom-dark: #000000;
JSON
{
  "hex": "#d04ff5",
  "rgb": {
    "r": 208,
    "g": 79,
    "b": 245
  },
  "hsl": {
    "h": 286.627,
    "s": 89.247,
    "l": 63.529
  },
  "oklch": {
    "l": 0.66686,
    "c": 0.25029,
    "h": 317.8
  },
  "luminance": 0.25594
}

Semantic roles & 50–950 ramp

primary
#D04FF5
secondary
#C0EDB2
accent
#E60033
background
#FEF8FF
surface
#FDF0FF
border
#D5CBD7
text
#160D17
muted
#847D85

Preview Lab

Preview with #D04FF5

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

Preview Lab → · Contrast checker → · Palette generator →

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