#D904FF#D904FF

#D904FF is a light, highly saturated purple. Relative luminance 0.221; OKLCH L 64.6% C 0.310 H 319.6°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#D904FF
RGBrgb(217, 4, 255)
HSLhsl(291, 100%, 51%)
HSVhsv(291, 98%, 100%)
CMYKcmyk(14.9%, 98.4%, 0%, 0%)
CIE-LABlab(54.09, 92.44, -71.19)
CIE-LCHlch(54.09, 116.68, 322.40°)
OKLaboklab(64.64% 0.2359 -0.2005)
OKLCHoklch(64.64% 0.31 319.6)
XYZxyz(46.7063, 22.0611, 96.3864)
Luminance0.2206 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D904FF #2AFF04
analogous
#5B04FF #D904FF #FF04A8
triadic
#D904FF #FFD904 #04FFD9
tetradic
#D904FF #FF5B04 #2AFF04 #04A8FF
square
#D904FF #FF5B04 #2AFF04 #04A8FF
split-complementary
#D904FF #A8FF04 #04FF5B
monochromatic
#740089 #A800C6 #D904FF #E241FF #EC7EFF

Accessibility & contrast

On white

3.88
#D904FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#D904FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D904FF
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D904FF#FFFFFF#000000##000000
##D904FF1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076FF
Deuteranopia (green-blind)
#2F87FB
Tritanopia (blue-blind)
#D95797
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d904ff;
/* rgb */ color: rgb(217, 4, 255);
/* oklch */ color: oklch(64.6% 0.310 319.6);
Tailwind
colors: {
  custom: {
    50: '#eb76ff',
    500: '#d904ff',
    950: '#000000',
  },
}
SCSS
$custom: #d904ff;
$custom-light: #eb76ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d904ff",
  "rgb": {
    "r": 217,
    "g": 4,
    "b": 255
  },
  "hsl": {
    "h": 290.916,
    "s": 100,
    "l": 50.784
  },
  "oklch": {
    "l": 0.64644,
    "c": 0.30964,
    "h": 319.6
  },
  "luminance": 0.22059
}

Semantic roles & 50–950 ramp

primary
#D904FF
secondary
#89E778
accent
#FF2949
background
#FFF8FF
surface
#FEEFFF
border
#D6CAD7
text
#170B18
muted
#857C86

Preview Lab

Preview with #D904FF

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

Preview Lab → · Contrast checker → · Palette generator →

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