#CB87F3#CB87F3

#CB87F3 is a light, vivid violet. Relative luminance 0.365; OKLCH L 73.3% C 0.165 H 311.9°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#CB87F3
RGBrgb(203, 135, 243)
HSLhsl(278, 82%, 74%)
HSVhsv(278, 44%, 95%)
CMYKcmyk(16.5%, 44.4%, 0%, 4.7%)
CIE-LABlab(66.90, 44.87, -44.22)
CIE-LCHlch(66.90, 63.00, 315.42°)
OKLaboklab(73.3% 0.1103 -0.1228)
OKLCHoklch(73.3% 0.165 311.9)
XYZxyz(49.4674, 36.4965, 89.2153)
Luminance0.3650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87F3 #AFF387
analogous
#9587F3 #CB87F3 #F387E5
triadic
#CB87F3 #F3CB87 #87F3CB
tetradic
#CB87F3 #F39587 #AFF387 #87E5F3
square
#CB87F3 #F39587 #AFF387 #87E5F3
split-complementary
#CB87F3 #E5F387 #87F395
monochromatic
#9B18E8 #B34FED #CB87F3 #E3BFF9 #F3E3FC

Accessibility & contrast

On white

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

On black

8.30
#CB87F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87F3
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87F3#FFFFFF#000000##000000
##CB87F31.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#709FF7
Deuteranopia (green-blind)
#82A4F0
Tritanopia (blue-blind)
#C797B2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cb87f3;
/* rgb */ color: rgb(203, 135, 243);
/* oklch */ color: oklch(73.3% 0.165 311.9);
Tailwind
colors: {
  custom: {
    50: '#ddabf7',
    500: '#cb87f3',
    950: '#000000',
  },
}
SCSS
$custom: #cb87f3;
$custom-light: #ddabf7;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87f3",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 243
  },
  "hsl": {
    "h": 277.778,
    "s": 81.818,
    "l": 74.118
  },
  "oklch": {
    "l": 0.73299,
    "c": 0.16512,
    "h": 311.9
  },
  "luminance": 0.36496
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB87F3

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

Preview Lab → · Contrast checker → · Palette generator →

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