#CB87FA#CB87FA

#CB87FA is a light, vivid violet. Relative luminance 0.369; OKLCH L 73.6% C 0.173 H 310.0°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#CB87FA
RGBrgb(203, 135, 250)
HSLhsl(275, 92%, 75%)
HSVhsv(275, 46%, 98%)
CMYKcmyk(18.8%, 46%, 0%, 2%)
CIE-LABlab(67.22, 46.37, -47.55)
CIE-LCHlch(67.22, 66.42, 314.28°)
OKLaboklab(73.65% 0.1114 -0.1325)
OKLCHoklch(73.65% 0.173 310)
XYZxyz(50.5447, 36.9274, 94.8890)
Luminance0.3693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87FA #B6FA87
analogous
#9187FA #CB87FA #FA87F0
triadic
#CB87FA #FACB87 #87FACB
tetradic
#CB87FA #FA9187 #B6FA87 #87F0FA
square
#CB87FA #FA9187 #B6FA87 #87F0FA
split-complementary
#CB87FA #F0FA87 #87FA91
monochromatic
#9811F5 #B24CF8 #CB87FA #E4C2FC #F2E2FE

Accessibility & contrast

On white

2.50
#CB87FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#CB87FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87FA
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87FA#FFFFFF#000000##000000
##CB87FA1.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA0FE
Deuteranopia (green-blind)
#7EA5F7
Tritanopia (blue-blind)
#C599B5
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cb87fa;
/* rgb */ color: rgb(203, 135, 250);
/* oklch */ color: oklch(73.6% 0.173 310.0);
Tailwind
colors: {
  custom: {
    50: '#ddabfc',
    500: '#cb87fa',
    950: '#000000',
  },
}
SCSS
$custom: #cb87fa;
$custom-light: #ddabfc;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87fa",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 275.478,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.73648,
    "c": 0.17306,
    "h": 310
  },
  "luminance": 0.36927
}

Semantic roles & 50–950 ramp

primary
#CB87FA
secondary
#E3F6D5
accent
#E6005E
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CB87FA

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

Preview Lab → · Contrast checker → · Palette generator →

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