#D287FC#D287FC

#D287FC is a light, vivid violet. Relative luminance 0.381; OKLCH L 74.5% C 0.178 H 312.3°. Best body text is #000000 at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#D287FC
RGBrgb(210, 135, 252)
HSLhsl(278, 95%, 76%)
HSVhsv(278, 46%, 99%)
CMYKcmyk(16.7%, 46.4%, 0%, 1.2%)
CIE-LABlab(68.06, 48.71, -47.27)
CIE-LCHlch(68.06, 67.87, 315.86°)
OKLaboklab(74.47% 0.1198 -0.1315)
OKLCHoklch(74.47% 0.178 312.3)
XYZxyz(52.8100, 38.0590, 96.6407)
Luminance0.3806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D287FC #B1FC87
analogous
#9787FC #D287FC #FC87EB
triadic
#D287FC #FCD287 #87FCD2
tetradic
#D287FC #FC9787 #B1FC87 #87EBFC
square
#D287FC #FC9787 #B1FC87 #87EBFC
split-complementary
#D287FC #EBFC87 #87FC97
monochromatic
#A510F9 #BC4BFB #D287FC #E8C3FD #F4E1FE

Accessibility & contrast

On white

2.44
#D287FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.61
#D287FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D287FC
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D287FC#FFFFFF#000000##000000
##D287FC1.002.448.618.61
#FFFFFF2.441.0021.0021.00
#0000008.6121.001.001.00
##0000008.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA2FF
Deuteranopia (green-blind)
#82A8F9
Tritanopia (blue-blind)
#CE99B6
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d287fc;
/* rgb */ color: rgb(210, 135, 252);
/* oklch */ color: oklch(74.5% 0.178 312.3);
Tailwind
colors: {
  custom: {
    50: '#e2acfe',
    500: '#d287fc',
    950: '#000000',
  },
}
SCSS
$custom: #d287fc;
$custom-light: #e2acfe;
$custom-dark: #000000;
JSON
{
  "hex": "#d287fc",
  "rgb": {
    "r": 210,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 278.462,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.74474,
    "c": 0.1779,
    "h": 312.3
  },
  "luminance": 0.38058
}

Semantic roles & 50–950 ramp

primary
#D287FC
secondary
#E1F6D5
accent
#E60052
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D287FC

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

Preview Lab → · Contrast checker → · Palette generator →

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