#D862F6#D862F6

#D862F6 is a light, highly saturated purple. Relative luminance 0.300; OKLCH L 69.8% C 0.230 H 319.0°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#D862F6
RGBrgb(216, 98, 246)
HSLhsl(288, 89%, 67%)
HSVhsv(288, 60%, 96%)
CMYKcmyk(12.2%, 60.2%, 0%, 3.5%)
CIE-LABlab(61.65, 67.11, -54.08)
CIE-LCHlch(61.65, 86.18, 321.14°)
OKLaboklab(69.81% 0.1737 -0.1509)
OKLCHoklch(69.81% 0.23 319)
XYZxyz(49.3190, 29.9902, 90.3617)
Luminance0.2999 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D862F6 #80F662
analogous
#8E62F6 #D862F6 #F662CA
triadic
#D862F6 #F6D862 #62F6D8
tetradic
#D862F6 #F68E62 #80F662 #62CAF6
square
#D862F6 #F68E62 #80F662 #62CAF6
split-complementary
#D862F6 #CAF662 #62F68E
monochromatic
#AA0CD2 #CA28F3 #D862F6 #E69CF9 #F5D6FD

Accessibility & contrast

On white

3.00
#D862F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#D862F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D862F6
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D862F6#FFFFFF#000000##000000
##D862F61.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8DFB
Deuteranopia (green-blind)
#6B99F2
Tritanopia (blue-blind)
#D87AA3
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #d862f6;
/* rgb */ color: rgb(216, 98, 246);
/* oklch */ color: oklch(69.8% 0.230 319.0);
Tailwind
colors: {
  custom: {
    50: '#e795fa',
    500: '#d862f6',
    950: '#000000',
  },
}
SCSS
$custom: #d862f6;
$custom-light: #e795fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d862f6",
  "rgb": {
    "r": 216,
    "g": 98,
    "b": 246
  },
  "hsl": {
    "h": 287.838,
    "s": 89.157,
    "l": 67.451
  },
  "oklch": {
    "l": 0.69808,
    "c": 0.2301,
    "h": 319
  },
  "luminance": 0.29988
}

Semantic roles & 50–950 ramp

primary
#D862F6
secondary
#CCF1C3
accent
#E6002F
background
#FEF9FF
surface
#FDF2FF
border
#D5CCD7
text
#160E17
muted
#847E85

Preview Lab

Preview with #D862F6

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

Preview Lab → · Contrast checker → · Palette generator →

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