#CD87F1#CD87F1

#CD87F1 is a light, vivid violet. Relative luminance 0.367; OKLCH L 73.4% C 0.164 H 313.3°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#CD87F1
RGBrgb(205, 135, 241)
HSLhsl(280, 79%, 74%)
HSVhsv(280, 44%, 95%)
CMYKcmyk(14.9%, 44%, 0%, 5.5%)
CIE-LABlab(67.02, 45.01, -42.92)
CIE-LCHlch(67.02, 62.19, 316.37°)
OKLaboklab(73.41% 0.1124 -0.119)
OKLCHoklch(73.41% 0.164 313.3)
XYZxyz(49.7154, 36.6590, 87.6590)
Luminance0.3666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87F1 #ABF187
analogous
#9887F1 #CD87F1 #F187E0
triadic
#CD87F1 #F1CD87 #87F1CD
tetradic
#CD87F1 #F19887 #ABF187 #87E0F1
square
#CD87F1 #F19887 #ABF187 #87E0F1
split-complementary
#CD87F1 #E0F187 #87F198
monochromatic
#9F1AE3 #B650EB #CD87F1 #E4BEF7 #F4E4FC

Accessibility & contrast

On white

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

On black

8.33
#CD87F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87F1
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87F1#FFFFFF#000000##000000
##CD87F11.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#729FF5
Deuteranopia (green-blind)
#84A5EE
Tritanopia (blue-blind)
#CA97B1
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cd87f1;
/* rgb */ color: rgb(205, 135, 241);
/* oklch */ color: oklch(73.4% 0.164 313.3);
Tailwind
colors: {
  custom: {
    50: '#deabf6',
    500: '#cd87f1',
    950: '#000000',
  },
}
SCSS
$custom: #cd87f1;
$custom-light: #deabf6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87f1",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 279.623,
    "s": 79.104,
    "l": 73.725
  },
  "oklch": {
    "l": 0.7341,
    "c": 0.16369,
    "h": 313.3
  },
  "luminance": 0.36658
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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