#CB87FF#CB87FF

#CB87FF is a light, vivid violet. Relative luminance 0.372; OKLCH L 73.9% C 0.179 H 308.8°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#CB87FF
RGBrgb(203, 135, 255)
HSLhsl(274, 100%, 76%)
HSVhsv(274, 47%, 100%)
CMYKcmyk(20.4%, 47.1%, 0%, 0%)
CIE-LABlab(67.46, 47.45, -49.91)
CIE-LCHlch(67.46, 68.87, 313.56°)
OKLaboklab(73.9% 0.112 -0.1393)
OKLCHoklch(73.9% 0.179 308.8)
XYZxyz(51.3391, 37.2452, 99.0728)
Luminance0.3724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87FF #BBFF87
analogous
#8F87FF #CB87FF #FF87F7
triadic
#CB87FF #FFCB87 #87FFCB
tetradic
#CB87FF #FF8F87 #BBFF87 #87F7FF
square
#CB87FF #FF8F87 #BBFF87 #87F7FF
split-complementary
#CB87FF #F7FF87 #87FF8F
monochromatic
#960DFF #B04AFF #CB87FF #E6C4FF #F2E0FF

Accessibility & contrast

On white

2.49
#CB87FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#CB87FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87FF
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87FF#FFFFFF#000000##000000
##CB87FF1.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#69A1FF
Deuteranopia (green-blind)
#7CA5FC
Tritanopia (blue-blind)
#C49BB7
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cb87ff;
/* rgb */ color: rgb(203, 135, 255);
/* oklch */ color: oklch(73.9% 0.179 308.8);
Tailwind
colors: {
  custom: {
    50: '#ddabff',
    500: '#cb87ff',
    950: '#000000',
  },
}
SCSS
$custom: #cb87ff;
$custom-light: #ddabff;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87ff",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 274,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.73904,
    "c": 0.17876,
    "h": 308.8
  },
  "luminance": 0.37244
}

Semantic roles & 50–950 ramp

primary
#CB87FF
secondary
#E3F7D4
accent
#E60063
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CB87FF

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

Preview Lab → · Contrast checker → · Palette generator →

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