#CB87F0#CB87F0

#CB87F0 is a light, vivid violet. Relative luminance 0.363; OKLCH L 73.2% C 0.162 H 312.8°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#CB87F0
RGBrgb(203, 135, 240)
HSLhsl(279, 78%, 74%)
HSVhsv(279, 44%, 94%)
CMYKcmyk(15.4%, 43.8%, 0%, 5.9%)
CIE-LABlab(66.76, 44.24, -42.79)
CIE-LCHlch(66.76, 61.55, 315.95°)
OKLaboklab(73.15% 0.1099 -0.1187)
OKLCHoklch(73.15% 0.162 312.8)
XYZxyz(49.0181, 36.3167, 86.8488)
Luminance0.3632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87F0 #ACF087
analogous
#9687F0 #CB87F0 #F087E0
triadic
#CB87F0 #F0CB87 #87F0CB
tetradic
#CB87F0 #F09687 #ACF087 #87E0F0
square
#CB87F0 #F09687 #ACF087 #87E0F0
split-complementary
#CB87F0 #E0F087 #87F096
monochromatic
#9B1CE1 #B351E9 #CB87F0 #E3BDF7 #F3E4FC

Accessibility & contrast

On white

2.54
#CB87F0 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#CB87F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87F0
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87F0#FFFFFF#000000##000000
##CB87F01.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#729FF4
Deuteranopia (green-blind)
#84A4ED
Tritanopia (blue-blind)
#C897B0
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cb87f0;
/* rgb */ color: rgb(203, 135, 240);
/* oklch */ color: oklch(73.2% 0.162 312.8);
Tailwind
colors: {
  custom: {
    50: '#dcabf5',
    500: '#cb87f0',
    950: '#000000',
  },
}
SCSS
$custom: #cb87f0;
$custom-light: #dcabf5;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87f0",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 240
  },
  "hsl": {
    "h": 278.857,
    "s": 77.778,
    "l": 73.529
  },
  "oklch": {
    "l": 0.73153,
    "c": 0.16174,
    "h": 312.8
  },
  "luminance": 0.36316
}

Semantic roles & 50–950 ramp

primary
#CB87F0
secondary
#E1F3D8
accent
#DA0B54
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CB87F0

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

Preview Lab → · Contrast checker → · Palette generator →

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