#CD87FC#CD87FC

#CD87FC is a light, vivid violet. Relative luminance 0.373; OKLCH L 74.0% C 0.176 H 310.3°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#CD87FC
RGBrgb(205, 135, 252)
HSLhsl(276, 95%, 76%)
HSVhsv(276, 46%, 99%)
CMYKcmyk(18.7%, 46.4%, 0%, 1.2%)
CIE-LABlab(67.53, 47.35, -48.15)
CIE-LCHlch(67.53, 67.52, 314.52°)
OKLaboklab(73.96% 0.114 -0.1342)
OKLCHoklch(73.96% 0.176 310.3)
XYZxyz(51.4083, 37.3362, 96.5750)
Luminance0.3734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87FC #B6FC87
analogous
#9287FC #CD87FC #FC87F1
triadic
#CD87FC #FCCD87 #87FCCD
tetradic
#CD87FC #FC9287 #B6FC87 #87F1FC
square
#CD87FC #FC9287 #B6FC87 #87F1FC
split-complementary
#CD87FC #F1FC87 #87FC92
monochromatic
#9B10F9 #B44BFB #CD87FC #E6C3FD #F3E1FE

Accessibility & contrast

On white

2.48
#CD87FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.47
#CD87FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87FC
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87FC#FFFFFF#000000##000000
##CD87FC1.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA1FF
Deuteranopia (green-blind)
#7FA6F9
Tritanopia (blue-blind)
#C79AB6
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cd87fc;
/* rgb */ color: rgb(205, 135, 252);
/* oklch */ color: oklch(74.0% 0.176 310.3);
Tailwind
colors: {
  custom: {
    50: '#deabfe',
    500: '#cd87fc',
    950: '#000000',
  },
}
SCSS
$custom: #cd87fc;
$custom-light: #deabfe;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87fc",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 275.897,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.73955,
    "c": 0.17604,
    "h": 310.3
  },
  "luminance": 0.37335
}

Semantic roles & 50–950 ramp

primary
#CD87FC
secondary
#E2F6D5
accent
#E6005C
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CD87FC

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

Preview Lab → · Contrast checker → · Palette generator →

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