#D862F7#D862F7

#D862F7 is a light, highly saturated purple. Relative luminance 0.300; OKLCH L 69.9% C 0.231 H 318.8°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#D862F7
RGBrgb(216, 98, 247)
HSLhsl(288, 90%, 68%)
HSVhsv(288, 60%, 97%)
CMYKcmyk(12.6%, 60.3%, 0%, 3.1%)
CIE-LABlab(61.70, 67.29, -54.54)
CIE-LCHlch(61.70, 86.62, 320.97°)
OKLaboklab(69.86% 0.1737 -0.1523)
OKLCHoklch(69.86% 0.231 318.8)
XYZxyz(49.4729, 30.0518, 91.1722)
Luminance0.3005 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D862F7 #81F762
analogous
#8E62F7 #D862F7 #F762CB
triadic
#D862F7 #F7D862 #62F7D8
tetradic
#D862F7 #F78E62 #81F762 #62CBF7
square
#D862F7 #F78E62 #81F762 #62CBF7
split-complementary
#D862F7 #CBF762 #62F78E
monochromatic
#AA0BD4 #CA28F4 #D862F7 #E69CFA #F5D6FD

Accessibility & contrast

On white

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

On black

7.01
#D862F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D862F7
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D862F7#FFFFFF#000000##000000
##D862F71.003.007.017.01
#FFFFFF3.001.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8DFC
Deuteranopia (green-blind)
#6A99F3
Tritanopia (blue-blind)
#D87BA4
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #d862f7;
/* rgb */ color: rgb(216, 98, 247);
/* oklch */ color: oklch(69.9% 0.231 318.8);
Tailwind
colors: {
  custom: {
    50: '#e795fa',
    500: '#d862f7',
    950: '#000000',
  },
}
SCSS
$custom: #d862f7;
$custom-light: #e795fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d862f7",
  "rgb": {
    "r": 216,
    "g": 98,
    "b": 247
  },
  "hsl": {
    "h": 287.517,
    "s": 90.303,
    "l": 67.647
  },
  "oklch": {
    "l": 0.69863,
    "c": 0.23101,
    "h": 318.8
  },
  "luminance": 0.3005
}

Semantic roles & 50–950 ramp

primary
#D862F7
secondary
#CDF2C3
accent
#E60030
background
#FEF9FF
surface
#FDF2FF
border
#D5CCD7
text
#160E17
muted
#847E85

Preview Lab

Preview with #D862F7

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

Preview Lab → · Contrast checker → · Palette generator →

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