#CB87EF#CB87EF

#CB87EF is a light, vivid violet. Relative luminance 0.363; OKLCH L 73.1% C 0.161 H 313.1°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#CB87EF
RGBrgb(203, 135, 239)
HSLhsl(279, 76%, 73%)
HSVhsv(279, 44%, 94%)
CMYKcmyk(15.1%, 43.5%, 0%, 6.3%)
CIE-LABlab(66.72, 44.03, -42.31)
CIE-LCHlch(66.72, 61.06, 316.14°)
OKLaboklab(73.1% 0.1097 -0.1173)
OKLCHoklch(73.1% 0.161 313.1)
XYZxyz(48.8700, 36.2575, 86.0686)
Luminance0.3626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87EF #ABEF87
analogous
#9787EF #CB87EF #EF87DF
triadic
#CB87EF #EFCB87 #87EFCB
tetradic
#CB87EF #EF9787 #ABEF87 #87DFEF
square
#CB87EF #EF9787 #ABEF87 #87DFEF
split-complementary
#CB87EF #DFEF87 #87EF97
monochromatic
#9B1EDE #B451E8 #CB87EF #E2BDF6 #F3E4FB

Accessibility & contrast

On white

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

On black

8.25
#CB87EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87EF
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87EF#FFFFFF#000000##000000
##CB87EF1.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#729FF3
Deuteranopia (green-blind)
#84A4EC
Tritanopia (blue-blind)
#C896B0
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cb87ef;
/* rgb */ color: rgb(203, 135, 239);
/* oklch */ color: oklch(73.1% 0.161 313.1);
Tailwind
colors: {
  custom: {
    50: '#dcabf4',
    500: '#cb87ef',
    950: '#000000',
  },
}
SCSS
$custom: #cb87ef;
$custom-light: #dcabf4;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87ef",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 279.231,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.73104,
    "c": 0.16061,
    "h": 313.1
  },
  "luminance": 0.36256
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB87EF

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

Preview Lab → · Contrast checker → · Palette generator →

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