#CB87FB#CB87FB

#CB87FB is a light, vivid violet. Relative luminance 0.370; OKLCH L 73.7% C 0.174 H 309.8°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#CB87FB
RGBrgb(203, 135, 251)
HSLhsl(275, 94%, 76%)
HSVhsv(275, 46%, 98%)
CMYKcmyk(19.1%, 46.2%, 0%, 1.6%)
CIE-LABlab(67.27, 46.59, -48.02)
CIE-LCHlch(67.27, 66.91, 314.13°)
OKLaboklab(73.7% 0.1115 -0.1338)
OKLCHoklch(73.7% 0.174 309.8)
XYZxyz(50.7019, 36.9903, 95.7170)
Luminance0.3699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87FB #B7FB87
analogous
#9187FB #CB87FB #FB87F1
triadic
#CB87FB #FBCB87 #87FBCB
tetradic
#CB87FB #FB9187 #B7FB87 #87F1FB
square
#CB87FB #FB9187 #B7FB87 #87F1FB
split-complementary
#CB87FB #F1FB87 #87FB91
monochromatic
#9811F7 #B14CF9 #CB87FB #E5C2FD #F2E1FE

Accessibility & contrast

On white

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

On black

8.40
#CB87FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87FB
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87FB#FFFFFF#000000##000000
##CB87FB1.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cb87fb;
/* rgb */ color: rgb(203, 135, 251);
/* oklch */ color: oklch(73.7% 0.174 309.8);
Tailwind
colors: {
  custom: {
    50: '#ddabfd',
    500: '#cb87fb',
    950: '#000000',
  },
}
SCSS
$custom: #cb87fb;
$custom-light: #ddabfd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87fb",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 275.172,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.73699,
    "c": 0.1742,
    "h": 309.8
  },
  "luminance": 0.36989
}

Semantic roles & 50–950 ramp

primary
#CB87FB
secondary
#E3F6D5
accent
#E6005F
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CB87FB

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

Preview Lab → · Contrast checker → · Palette generator →

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