#D862FC#D862FC

#D862FC is a light, highly saturated purple. Relative luminance 0.304; OKLCH L 70.1% C 0.236 H 317.5°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#D862FC
RGBrgb(216, 98, 252)
HSLhsl(286, 96%, 69%)
HSVhsv(286, 61%, 99%)
CMYKcmyk(14.3%, 61.1%, 0%, 1.2%)
CIE-LABlab(61.97, 68.24, -56.88)
CIE-LCHlch(61.97, 88.84, 320.19°)
OKLaboklab(70.15% 0.1738 -0.1591)
OKLCHoklch(70.15% 0.236 317.5)
XYZxyz(50.2548, 30.3646, 95.2903)
Luminance0.3036 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D862FC #86FC62
analogous
#8B62FC #D862FC #FC62D3
triadic
#D862FC #FCD862 #62FCD8
tetradic
#D862FC #FC8B62 #86FC62 #62D3FC
square
#D862FC #FC8B62 #86FC62 #62D3FC
split-complementary
#D862FC #D3FC62 #62FC8B
monochromatic
#AC04DF #C926FB #D862FC #E79EFD #F6DAFE

Accessibility & contrast

On white

2.97
#D862FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.07
#D862FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D862FC
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D862FC#FFFFFF#000000##000000
##D862FC1.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#338EFF
Deuteranopia (green-blind)
#6799F8
Tritanopia (blue-blind)
#D77DA6
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #d862fc;
/* rgb */ color: rgb(216, 98, 252);
/* oklch */ color: oklch(70.1% 0.236 317.5);
Tailwind
colors: {
  custom: {
    50: '#e795fe',
    500: '#d862fc',
    950: '#000000',
  },
}
SCSS
$custom: #d862fc;
$custom-light: #e795fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d862fc",
  "rgb": {
    "r": 216,
    "g": 98,
    "b": 252
  },
  "hsl": {
    "h": 285.974,
    "s": 96.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.70145,
    "c": 0.23561,
    "h": 317.5
  },
  "luminance": 0.30363
}

Semantic roles & 50–950 ramp

primary
#D862FC
secondary
#D1F4C6
accent
#E60036
background
#FEF9FF
surface
#FDF2FF
border
#D5CCD7
text
#160E18
muted
#847E86

Preview Lab

Preview with #D862FC

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

Preview Lab → · Contrast checker → · Palette generator →

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