#D04CFE#D04CFE

#D04CFE is a light, highly saturated purple. Relative luminance 0.257; OKLCH L 67.0% C 0.262 H 315.8°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#D04CFE
RGBrgb(208, 76, 254)
HSLhsl(284, 99%, 65%)
HSVhsv(284, 70%, 100%)
CMYKcmyk(18.1%, 70.1%, 0%, 0.4%)
CIE-LABlab(57.79, 75.89, -64.74)
CIE-LCHlch(57.79, 99.75, 319.53°)
OKLaboklab(66.95% 0.1876 -0.1822)
OKLCHoklch(66.95% 0.262 315.8)
XYZxyz(46.4834, 25.7363, 96.2658)
Luminance0.2574 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D04CFE #7AFE4C
analogous
#774CFE #D04CFE #FE4CD3
triadic
#D04CFE #FED04C #4CFED0
tetradic
#D04CFE #FE774C #7AFE4C #4CD3FE
square
#D04CFE #FE774C #7AFE4C #4CD3FE
split-complementary
#D04CFE #D3FE4C #4CFE77
monochromatic
#9901CE #C00FFE #D04CFE #E089FE #F0C6FF

Accessibility & contrast

On white

3.42
#D04CFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#D04CFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D04CFE
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D04CFE#FFFFFF#000000##000000
##D04CFE1.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FF
Deuteranopia (green-blind)
#4A8EFA
Tritanopia (blue-blind)
#CD71A1
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #d04cfe;
/* rgb */ color: rgb(208, 76, 254);
/* oklch */ color: oklch(67.0% 0.262 315.8);
Tailwind
colors: {
  custom: {
    50: '#e389ff',
    500: '#d04cfe',
    950: '#000000',
  },
}
SCSS
$custom: #d04cfe;
$custom-light: #e389ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d04cfe",
  "rgb": {
    "r": 208,
    "g": 76,
    "b": 254
  },
  "hsl": {
    "h": 284.494,
    "s": 98.889,
    "l": 64.706
  },
  "oklch": {
    "l": 0.66954,
    "c": 0.26152,
    "h": 315.8
  },
  "luminance": 0.25735
}

Semantic roles & 50–950 ramp

primary
#D04CFE
secondary
#C4F1B4
accent
#E6003B
background
#FEF8FF
surface
#FDF0FF
border
#D5CBD7
text
#160C18
muted
#847D86

Preview Lab

Preview with #D04CFE

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

Preview Lab → · Contrast checker → · Palette generator →

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