#CB87F4#CB87F4

#CB87F4 is a light, vivid violet. Relative luminance 0.366; OKLCH L 73.3% C 0.166 H 311.6°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#CB87F4
RGBrgb(203, 135, 244)
HSLhsl(277, 83%, 74%)
HSVhsv(277, 45%, 96%)
CMYKcmyk(16.8%, 44.7%, 0%, 4.3%)
CIE-LABlab(66.94, 45.08, -44.70)
CIE-LCHlch(66.94, 63.49, 315.25°)
OKLaboklab(73.35% 0.1105 -0.1242)
OKLCHoklch(73.35% 0.166 311.6)
XYZxyz(49.6188, 36.5570, 90.0127)
Luminance0.3656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87F4 #B0F487
analogous
#9587F4 #CB87F4 #F487E7
triadic
#CB87F4 #F4CB87 #87F4CB
tetradic
#CB87F4 #F49587 #B0F487 #87E7F4
square
#CB87F4 #F49587 #B0F487 #87E7F4
split-complementary
#CB87F4 #E7F487 #87F495
monochromatic
#9A17EA #B34FEF #CB87F4 #E3BFF9 #F3E3FC

Accessibility & contrast

On white

2.53
#CB87F4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#CB87F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87F4
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87F4#FFFFFF#000000##000000
##CB87F41.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#709FF8
Deuteranopia (green-blind)
#82A4F1
Tritanopia (blue-blind)
#C798B2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cb87f4;
/* rgb */ color: rgb(203, 135, 244);
/* oklch */ color: oklch(73.3% 0.166 311.6);
Tailwind
colors: {
  custom: {
    50: '#ddabf8',
    500: '#cb87f4',
    950: '#000000',
  },
}
SCSS
$custom: #cb87f4;
$custom-light: #ddabf8;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87f4",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 277.431,
    "s": 83.206,
    "l": 74.314
  },
  "oklch": {
    "l": 0.73349,
    "c": 0.16626,
    "h": 311.6
  },
  "luminance": 0.36556
}

Semantic roles & 50–950 ramp

primary
#CB87F4
secondary
#E2F4D7
accent
#E00658
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CB87F4

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

Preview Lab → · Contrast checker → · Palette generator →

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