#CB87EE#CB87EE

#CB87EE is a light, vivid violet. Relative luminance 0.362; OKLCH L 73.1% C 0.160 H 313.4°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#CB87EE
RGBrgb(203, 135, 238)
HSLhsl(280, 75%, 73%)
HSVhsv(280, 43%, 93%)
CMYKcmyk(14.7%, 43.3%, 0%, 6.7%)
CIE-LABlab(66.67, 43.82, -41.83)
CIE-LCHlch(66.67, 60.58, 316.33°)
OKLaboklab(73.06% 0.1095 -0.1159)
OKLCHoklch(73.06% 0.16 313.4)
XYZxyz(48.7226, 36.1986, 85.2927)
Luminance0.3620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87EE #AAEE87
analogous
#9787EE #CB87EE #EE87DD
triadic
#CB87EE #EECB87 #87EECB
tetradic
#CB87EE #EE9787 #AAEE87 #87DDEE
square
#CB87EE #EE9787 #AAEE87 #87DDEE
split-complementary
#CB87EE #DDEE87 #87EE97
monochromatic
#9B1FDC #B451E6 #CB87EE #E2BDF6 #F3E4FB

Accessibility & contrast

On white

2.55
#CB87EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#CB87EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87EE
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87EE#FFFFFF#000000##000000
##CB87EE1.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#739EF2
Deuteranopia (green-blind)
#85A4EB
Tritanopia (blue-blind)
#C896AF
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cb87ee;
/* rgb */ color: rgb(203, 135, 238);
/* oklch */ color: oklch(73.1% 0.160 313.4);
Tailwind
colors: {
  custom: {
    50: '#dcabf4',
    500: '#cb87ee',
    950: '#000000',
  },
}
SCSS
$custom: #cb87ee;
$custom-light: #dcabf4;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87ee",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 279.612,
    "s": 75.182,
    "l": 73.137
  },
  "oklch": {
    "l": 0.73056,
    "c": 0.1595,
    "h": 313.4
  },
  "luminance": 0.36198
}

Semantic roles & 50–950 ramp

primary
#CB87EE
secondary
#E1F3D8
accent
#D70E53
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CB87EE

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

Preview Lab → · Contrast checker → · Palette generator →

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