#CB87F1#CB87F1

#CB87F1 is a light, vivid violet. Relative luminance 0.364; OKLCH L 73.2% C 0.163 H 312.5°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#CB87F1
RGBrgb(203, 135, 241)
HSLhsl(278, 79%, 74%)
HSVhsv(278, 44%, 95%)
CMYKcmyk(15.8%, 44%, 0%, 5.5%)
CIE-LABlab(66.81, 44.45, -43.27)
CIE-LCHlch(66.81, 62.03, 315.77°)
OKLaboklab(73.2% 0.11 -0.1201)
OKLCHoklch(73.2% 0.163 312.5)
XYZxyz(49.1671, 36.3763, 87.6333)
Luminance0.3638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87F1 #ADF187
analogous
#9687F1 #CB87F1 #F187E2
triadic
#CB87F1 #F1CB87 #87F1CB
tetradic
#CB87F1 #F19687 #ADF187 #87E2F1
square
#CB87F1 #F19687 #ADF187 #87E2F1
split-complementary
#CB87F1 #E2F187 #87F196
monochromatic
#9B1AE3 #B350EB #CB87F1 #E3BEF7 #F3E4FC

Accessibility & contrast

On white

2.54
#CB87F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#CB87F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87F1
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87F1#FFFFFF#000000##000000
##CB87F11.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#719FF5
Deuteranopia (green-blind)
#83A4EE
Tritanopia (blue-blind)
#C797B1
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cb87f1;
/* rgb */ color: rgb(203, 135, 241);
/* oklch */ color: oklch(73.2% 0.163 312.5);
Tailwind
colors: {
  custom: {
    50: '#dcabf6',
    500: '#cb87f1',
    950: '#000000',
  },
}
SCSS
$custom: #cb87f1;
$custom-light: #dcabf6;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87f1",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 278.491,
    "s": 79.104,
    "l": 73.725
  },
  "oklch": {
    "l": 0.73201,
    "c": 0.16287,
    "h": 312.5
  },
  "luminance": 0.36375
}

Semantic roles & 50–950 ramp

primary
#CB87F1
secondary
#E2F4D7
accent
#DB0A55
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CB87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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