#CD87F2#CD87F2

#CD87F2 is a light, vivid violet. Relative luminance 0.367; OKLCH L 73.5% C 0.165 H 313.1°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#CD87F2
RGBrgb(205, 135, 242)
HSLhsl(279, 80%, 74%)
HSVhsv(279, 44%, 95%)
CMYKcmyk(15.3%, 44.2%, 0%, 5.1%)
CIE-LABlab(67.07, 45.22, -43.40)
CIE-LCHlch(67.07, 62.68, 316.18°)
OKLaboklab(73.46% 0.1125 -0.1204)
OKLCHoklch(73.46% 0.165 313.1)
XYZxyz(49.8651, 36.7190, 88.4478)
Luminance0.3672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87F2 #ACF287
analogous
#9887F2 #CD87F2 #F287E2
triadic
#CD87F2 #F2CD87 #87F2CD
tetradic
#CD87F2 #F29887 #ACF287 #87E2F2
square
#CD87F2 #F29887 #ACF287 #87E2F2
split-complementary
#CD87F2 #E2F287 #87F298
monochromatic
#9F19E6 #B650EC #CD87F2 #E4BEF8 #F3E3FC

Accessibility & contrast

On white

2.52
#CD87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#CD87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87F2
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87F2#FFFFFF#000000##000000
##CD87F21.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#719FF6
Deuteranopia (green-blind)
#84A5EF
Tritanopia (blue-blind)
#CA97B1
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cd87f2;
/* rgb */ color: rgb(205, 135, 242);
/* oklch */ color: oklch(73.5% 0.165 313.1);
Tailwind
colors: {
  custom: {
    50: '#deabf7',
    500: '#cd87f2',
    950: '#000000',
  },
}
SCSS
$custom: #cd87f2;
$custom-light: #deabf7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87f2",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 279.252,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73458,
    "c": 0.1648,
    "h": 313.1
  },
  "luminance": 0.36718
}

Semantic roles & 50–950 ramp

primary
#CD87F2
secondary
#E1F4D7
accent
#DD0952
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CD87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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