#D287F2#D287F2

#D287F2 is a light, vivid purple. Relative luminance 0.374; OKLCH L 74.0% C 0.167 H 315.1°. Best body text is #000000 at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#D287F2
RGBrgb(210, 135, 242)
HSLhsl(282, 80%, 74%)
HSVhsv(282, 44%, 95%)
CMYKcmyk(13.2%, 44.2%, 0%, 5.1%)
CIE-LABlab(67.61, 46.63, -42.51)
CIE-LCHlch(67.61, 63.10, 317.65°)
OKLaboklab(73.98% 0.1183 -0.1177)
OKLCHoklch(73.98% 0.167 315.1)
XYZxyz(51.2668, 37.4417, 88.5135)
Luminance0.3744 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D287F2 #A7F287
analogous
#9D87F2 #D287F2 #F287DD
triadic
#D287F2 #F2D287 #87F2D2
tetradic
#D287F2 #F29D87 #A7F287 #87DDF2
square
#D287F2 #F29D87 #A7F287 #87DDF2
split-complementary
#D287F2 #DDF287 #87F29D
monochromatic
#A819E6 #BD50EC #D287F2 #E7BEF8 #F5E3FC

Accessibility & contrast

On white

2.47
#D287F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.49
#D287F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D287F2
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D287F2#FFFFFF#000000##000000
##D287F21.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A0F6
Deuteranopia (green-blind)
#87A7EF
Tritanopia (blue-blind)
#D096B1
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #d287f2;
/* rgb */ color: rgb(210, 135, 242);
/* oklch */ color: oklch(74.0% 0.167 315.1);
Tailwind
colors: {
  custom: {
    50: '#e1abf7',
    500: '#d287f2',
    950: '#000000',
  },
}
SCSS
$custom: #d287f2;
$custom-light: #e1abf7;
$custom-dark: #000000;
JSON
{
  "hex": "#d287f2",
  "rgb": {
    "r": 210,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 282.056,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73984,
    "c": 0.16694,
    "h": 315.1
  },
  "luminance": 0.3744
}

Semantic roles & 50–950 ramp

primary
#D287F2
secondary
#E0F4D7
accent
#DD0948
background
#FEFAFF
surface
#FCF4FE
border
#D5CED6
text
#151017
muted
#847F85

Preview Lab

Preview with #D287F2

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

Preview Lab → · Contrast checker → · Palette generator →

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