#D287EC#D287EC

#D287EC is a light, vivid purple. Relative luminance 0.371; OKLCH L 73.7% C 0.160 H 317.0°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#D287EC
RGBrgb(210, 135, 236)
HSLhsl(285, 73%, 73%)
HSVhsv(285, 43%, 93%)
CMYKcmyk(11%, 42.8%, 0%, 7.5%)
CIE-LABlab(67.34, 45.41, -39.62)
CIE-LCHlch(67.34, 60.27, 318.90°)
OKLaboklab(73.7% 0.1173 -0.1094)
OKLCHoklch(73.7% 0.16 317)
XYZxyz(50.3805, 37.0872, 83.8452)
Luminance0.3709 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D287EC #A1EC87
analogous
#9F87EC #D287EC #EC87D4
triadic
#D287EC #ECD287 #87ECD2
tetradic
#D287EC #EC9F87 #A1EC87 #87D4EC
square
#D287EC #EC9F87 #A1EC87 #87D4EC
split-complementary
#D287EC #D4EC87 #87EC9F
monochromatic
#A822D7 #BE52E4 #D287EC #E6BCF4 #F5E5FB

Accessibility & contrast

On white

2.49
#D287EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#D287EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D287EC
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D287EC#FFFFFF#000000##000000
##D287EC1.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#769FF0
Deuteranopia (green-blind)
#8AA6E9
Tritanopia (blue-blind)
#D195AE
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #d287ec;
/* rgb */ color: rgb(210, 135, 236);
/* oklch */ color: oklch(73.7% 0.160 317.0);
Tailwind
colors: {
  custom: {
    50: '#e1abf2',
    500: '#d287ec',
    950: '#000000',
  },
}
SCSS
$custom: #d287ec;
$custom-light: #e1abf2;
$custom-dark: #000000;
JSON
{
  "hex": "#d287ec",
  "rgb": {
    "r": 210,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 284.554,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.73699,
    "c": 0.16045,
    "h": 317
  },
  "luminance": 0.37086
}

Semantic roles & 50–950 ramp

primary
#D287EC
secondary
#DFF2D9
accent
#D51143
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#151017
muted
#847F85

Preview Lab

Preview with #D287EC

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

Preview Lab → · Contrast checker → · Palette generator →

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