#CB87F9#CB87F9

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

Color values

HEX#CB87F9
RGBrgb(203, 135, 249)
HSLhsl(276, 90%, 75%)
HSVhsv(276, 46%, 98%)
CMYKcmyk(18.5%, 45.8%, 0%, 2.4%)
CIE-LABlab(67.18, 46.15, -47.08)
CIE-LCHlch(67.18, 65.93, 314.43°)
OKLaboklab(73.6% 0.1112 -0.1311)
OKLCHoklch(73.6% 0.172 310.3)
XYZxyz(50.3883, 36.8648, 94.0653)
Luminance0.3686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87F9 #B5F987
analogous
#9287F9 #CB87F9 #F987EE
triadic
#CB87F9 #F9CB87 #87F9CB
tetradic
#CB87F9 #F99287 #B5F987 #87EEF9
square
#CB87F9 #F99287 #B5F987 #87EEF9
split-complementary
#CB87F9 #EEF987 #87F992
monochromatic
#9812F3 #B24DF6 #CB87F9 #E4C1FC #F2E2FE

Accessibility & contrast

On white

2.51
#CB87F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#CB87F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87F9
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87F9#FFFFFF#000000##000000
##CB87F91.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA0FD
Deuteranopia (green-blind)
#7FA5F6
Tritanopia (blue-blind)
#C699B4
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cb87f9;
/* rgb */ color: rgb(203, 135, 249);
/* oklch */ color: oklch(73.6% 0.172 310.3);
Tailwind
colors: {
  custom: {
    50: '#ddabfc',
    500: '#cb87f9',
    950: '#000000',
  },
}
SCSS
$custom: #cb87f9;
$custom-light: #ddabfc;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87f9",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 249
  },
  "hsl": {
    "h": 275.789,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.73598,
    "c": 0.17192,
    "h": 310.3
  },
  "luminance": 0.36864
}

Semantic roles & 50–950 ramp

primary
#CB87F9
secondary
#E2F6D5
accent
#E6005D
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CB87F9

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

Preview Lab → · Contrast checker → · Palette generator →

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