#CB87FE#CB87FE

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

Color values

HEX#CB87FE
RGBrgb(203, 135, 254)
HSLhsl(274, 98%, 76%)
HSVhsv(274, 47%, 100%)
CMYKcmyk(20.1%, 46.9%, 0%, 0.4%)
CIE-LABlab(67.41, 47.24, -49.44)
CIE-LCHlch(67.41, 68.38, 313.70°)
OKLaboklab(73.85% 0.1119 -0.138)
OKLCHoklch(73.85% 0.178 309)
XYZxyz(51.1786, 37.1809, 98.2273)
Luminance0.3718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87FE #BAFE87
analogous
#9087FE #CB87FE #FE87F5
triadic
#CB87FE #FECB87 #87FECB
tetradic
#CB87FE #FE9087 #BAFE87 #87F5FE
square
#CB87FE #FE9087 #BAFE87 #87F5FE
split-complementary
#CB87FE #F5FE87 #87FE90
monochromatic
#960EFD #B14AFD #CB87FE #E5C4FF #F2E1FF

Accessibility & contrast

On white

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

On black

8.44
#CB87FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87FE
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87FE#FFFFFF#000000##000000
##CB87FE1.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6AA1FF
Deuteranopia (green-blind)
#7CA5FB
Tritanopia (blue-blind)
#C49AB7
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cb87fe;
/* rgb */ color: rgb(203, 135, 254);
/* oklch */ color: oklch(73.9% 0.178 309.0);
Tailwind
colors: {
  custom: {
    50: '#ddabff',
    500: '#cb87fe',
    950: '#000000',
  },
}
SCSS
$custom: #cb87fe;
$custom-light: #ddabff;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87fe",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 274.286,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.73852,
    "c": 0.17762,
    "h": 309
  },
  "luminance": 0.3718
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB87FE

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

Preview Lab → · Contrast checker → · Palette generator →

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