#D862F9#D862F9

#D862F9 is a light, highly saturated purple. Relative luminance 0.302; OKLCH L 70.0% C 0.233 H 318.3°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#D862F9
RGBrgb(216, 98, 249)
HSLhsl(287, 93%, 68%)
HSVhsv(287, 61%, 98%)
CMYKcmyk(13.3%, 60.6%, 0%, 2.4%)
CIE-LABlab(61.81, 67.67, -55.48)
CIE-LCHlch(61.81, 87.51, 320.65°)
OKLaboklab(69.97% 0.1737 -0.155)
OKLCHoklch(69.97% 0.233 318.3)
XYZxyz(49.7831, 30.1759, 92.8064)
Luminance0.3017 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D862F9 #83F962
analogous
#8C62F9 #D862F9 #F962CF
triadic
#D862F9 #F9D862 #62F9D8
tetradic
#D862F9 #F98C62 #83F962 #62CFF9
square
#D862F9 #F98C62 #83F962 #62CFF9
split-complementary
#D862F9 #CFF962 #62F98C
monochromatic
#AB08D8 #C927F7 #D862F9 #E79DFB #F5D8FE

Accessibility & contrast

On white

2.99
#D862F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#D862F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D862F9
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D862F9#FFFFFF#000000##000000
##D862F91.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#388EFE
Deuteranopia (green-blind)
#6999F5
Tritanopia (blue-blind)
#D87BA5
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #d862f9;
/* rgb */ color: rgb(216, 98, 249);
/* oklch */ color: oklch(70.0% 0.233 318.3);
Tailwind
colors: {
  custom: {
    50: '#e795fc',
    500: '#d862f9',
    950: '#000000',
  },
}
SCSS
$custom: #d862f9;
$custom-light: #e795fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d862f9",
  "rgb": {
    "r": 216,
    "g": 98,
    "b": 249
  },
  "hsl": {
    "h": 286.887,
    "s": 92.638,
    "l": 68.039
  },
  "oklch": {
    "l": 0.69975,
    "c": 0.23285,
    "h": 318.3
  },
  "luminance": 0.30174
}

Semantic roles & 50–950 ramp

primary
#D862F9
secondary
#CEF2C4
accent
#E60032
background
#FEF9FF
surface
#FDF2FF
border
#D5CCD7
text
#160E17
muted
#847E85

Preview Lab

Preview with #D862F9

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

Preview Lab → · Contrast checker → · Palette generator →

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