#CB87F6#CB87F6

#CB87F6 is a light, vivid violet. Relative luminance 0.367; OKLCH L 73.4% C 0.169 H 311.1°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#CB87F6
RGBrgb(203, 135, 246)
HSLhsl(277, 86%, 75%)
HSVhsv(277, 45%, 96%)
CMYKcmyk(17.5%, 45.1%, 0%, 3.5%)
CIE-LABlab(67.04, 45.51, -45.65)
CIE-LCHlch(67.04, 64.46, 314.91°)
OKLaboklab(73.45% 0.1108 -0.127)
OKLCHoklch(73.45% 0.169 311.1)
XYZxyz(49.9242, 36.6792, 91.6207)
Luminance0.3668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87F6 #B2F687
analogous
#9487F6 #CB87F6 #F687E9
triadic
#CB87F6 #F6CB87 #87F6CB
tetradic
#CB87F6 #F69487 #B2F687 #87E9F6
square
#CB87F6 #F69487 #B2F687 #87E9F6
split-complementary
#CB87F6 #E9F687 #87F694
monochromatic
#9A15ED #B24EF2 #CB87F6 #E4C0FA #F3E3FD

Accessibility & contrast

On white

2.52
#CB87F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#CB87F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87F6
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87F6#FFFFFF#000000##000000
##CB87F61.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA0FA
Deuteranopia (green-blind)
#81A5F3
Tritanopia (blue-blind)
#C698B3
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cb87f6;
/* rgb */ color: rgb(203, 135, 246);
/* oklch */ color: oklch(73.4% 0.169 311.1);
Tailwind
colors: {
  custom: {
    50: '#ddabf9',
    500: '#cb87f6',
    950: '#000000',
  },
}
SCSS
$custom: #cb87f6;
$custom-light: #ddabf9;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87f6",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 276.757,
    "s": 86.047,
    "l": 74.706
  },
  "oklch": {
    "l": 0.73448,
    "c": 0.16852,
    "h": 311.1
  },
  "luminance": 0.36678
}

Semantic roles & 50–950 ramp

primary
#CB87F6
secondary
#E2F5D6
accent
#E3035A
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CB87F6

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

Preview Lab → · Contrast checker → · Palette generator →

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