#CB87F2#CB87F2

#CB87F2 is a light, vivid violet. Relative luminance 0.364; OKLCH L 73.3% C 0.164 H 312.2°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#CB87F2
RGBrgb(203, 135, 242)
HSLhsl(278, 80%, 74%)
HSVhsv(278, 44%, 95%)
CMYKcmyk(16.1%, 44.2%, 0%, 5.1%)
CIE-LABlab(66.85, 44.66, -43.75)
CIE-LCHlch(66.85, 62.52, 315.59°)
OKLaboklab(73.25% 0.1102 -0.1215)
OKLCHoklch(73.25% 0.164 312.2)
XYZxyz(49.3168, 36.4362, 88.4221)
Luminance0.3644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87F2 #AEF287
analogous
#9687F2 #CB87F2 #F287E4
triadic
#CB87F2 #F2CB87 #87F2CB
tetradic
#CB87F2 #F29687 #AEF287 #87E4F2
square
#CB87F2 #F29687 #AEF287 #87E4F2
split-complementary
#CB87F2 #E4F287 #87F296
monochromatic
#9B19E6 #B350EC #CB87F2 #E3BEF8 #F3E3FC

Accessibility & contrast

On white

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

On black

8.29
#CB87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87F2
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87F2#FFFFFF#000000##000000
##CB87F21.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#719FF6
Deuteranopia (green-blind)
#83A4EF
Tritanopia (blue-blind)
#C797B1
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cb87f2;
/* rgb */ color: rgb(203, 135, 242);
/* oklch */ color: oklch(73.3% 0.164 312.2);
Tailwind
colors: {
  custom: {
    50: '#dcabf7',
    500: '#cb87f2',
    950: '#000000',
  },
}
SCSS
$custom: #cb87f2;
$custom-light: #dcabf7;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87f2",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 278.131,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.7325,
    "c": 0.164,
    "h": 312.2
  },
  "luminance": 0.36435
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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