#CB87FC#CB87FC

#CB87FC is a light, vivid violet. Relative luminance 0.371; OKLCH L 73.8% C 0.175 H 309.5°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#CB87FC
RGBrgb(203, 135, 252)
HSLhsl(275, 95%, 76%)
HSVhsv(275, 46%, 99%)
CMYKcmyk(19.4%, 46.4%, 0%, 1.2%)
CIE-LABlab(67.32, 46.80, -48.49)
CIE-LCHlch(67.32, 67.40, 313.98°)
OKLaboklab(73.75% 0.1116 -0.1352)
OKLCHoklch(73.75% 0.175 309.5)
XYZxyz(50.8600, 37.0535, 96.5493)
Luminance0.3705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87FC #B8FC87
analogous
#9087FC #CB87FC #FC87F2
triadic
#CB87FC #FCCB87 #87FCCB
tetradic
#CB87FC #FC9087 #B8FC87 #87F2FC
square
#CB87FC #FC9087 #B8FC87 #87F2FC
split-complementary
#CB87FC #F2FC87 #87FC90
monochromatic
#9710F9 #B14BFB #CB87FC #E5C3FD #F2E1FE

Accessibility & contrast

On white

2.50
#CB87FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.41
#CB87FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87FC
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87FC#FFFFFF#000000##000000
##CB87FC1.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6BA1FF
Deuteranopia (green-blind)
#7DA5F9
Tritanopia (blue-blind)
#C59AB6
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cb87fc;
/* rgb */ color: rgb(203, 135, 252);
/* oklch */ color: oklch(73.8% 0.175 309.5);
Tailwind
colors: {
  custom: {
    50: '#ddabfe',
    500: '#cb87fc',
    950: '#000000',
  },
}
SCSS
$custom: #cb87fc;
$custom-light: #ddabfe;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87fc",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 274.872,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.7375,
    "c": 0.17534,
    "h": 309.5
  },
  "luminance": 0.37053
}

Semantic roles & 50–950 ramp

primary
#CB87FC
secondary
#E3F6D5
accent
#E60060
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CB87FC

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

Preview Lab → · Contrast checker → · Palette generator →

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