#D042FF#D042FF

#D042FF is a light, highly saturated purple. Relative luminance 0.245; OKLCH L 66.1% C 0.273 H 316.1°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#D042FF
RGBrgb(208, 66, 255)
HSLhsl(285, 100%, 63%)
HSVhsv(285, 74%, 100%)
CMYKcmyk(18.4%, 74.1%, 0%, 0%)
CIE-LABlab(56.61, 79.60, -67.18)
CIE-LCHlch(56.61, 104.16, 319.84°)
OKLaboklab(66.14% 0.1965 -0.1893)
OKLCHoklch(66.14% 0.273 316.1)
XYZxyz(46.0078, 24.5282, 96.8993)
Luminance0.2453 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042FF #71FF42
analogous
#7142FF #D042FF #FF42D0
triadic
#D042FF #FFD042 #42FFD0
tetradic
#D042FF #FF7142 #71FF42 #42D0FF
square
#D042FF #FF7142 #71FF42 #42D0FF
split-complementary
#D042FF #D0FF42 #42FF71
monochromatic
#9500C7 #C105FF #D042FF #DF7FFF #EEBCFF

Accessibility & contrast

On white

3.56
#D042FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#D042FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042FF
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042FF#FFFFFF#000000##000000
##D042FF1.003.565.915.91
#FFFFFF3.561.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FF
Deuteranopia (green-blind)
#408CFB
Tritanopia (blue-blind)
#CD6C9F
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #d042ff;
/* rgb */ color: rgb(208, 66, 255);
/* oklch */ color: oklch(66.1% 0.273 316.1);
Tailwind
colors: {
  custom: {
    50: '#e384ff',
    500: '#d042ff',
    950: '#000000',
  },
}
SCSS
$custom: #d042ff;
$custom-light: #e384ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d042ff",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 255
  },
  "hsl": {
    "h": 285.079,
    "s": 100,
    "l": 62.941
  },
  "oklch": {
    "l": 0.66141,
    "c": 0.27283,
    "h": 316.1
  },
  "luminance": 0.24526
}

Semantic roles & 50–950 ramp

primary
#D042FF
secondary
#BDF0AC
accent
#E60039
background
#FEF8FF
surface
#FDF0FF
border
#D5CBD7
text
#160C18
muted
#847D86

Preview Lab

Preview with #D042FF

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

Preview Lab → · Contrast checker → · Palette generator →

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