#CB87F5#CB87F5

#CB87F5 is a light, vivid violet. Relative luminance 0.366; OKLCH L 73.4% C 0.167 H 311.4°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#CB87F5
RGBrgb(203, 135, 245)
HSLhsl(277, 85%, 75%)
HSVhsv(277, 45%, 96%)
CMYKcmyk(17.1%, 44.9%, 0%, 3.9%)
CIE-LABlab(66.99, 45.30, -45.18)
CIE-LCHlch(66.99, 63.97, 315.08°)
OKLaboklab(73.4% 0.1106 -0.1256)
OKLCHoklch(73.4% 0.167 311.4)
XYZxyz(49.7711, 36.6179, 90.8146)
Luminance0.3662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87F5 #B1F587
analogous
#9487F5 #CB87F5 #F587E8
triadic
#CB87F5 #F5CB87 #87F5CB
tetradic
#CB87F5 #F59487 #B1F587 #87E8F5
square
#CB87F5 #F59487 #B1F587 #87E8F5
split-complementary
#CB87F5 #E8F587 #87F594
monochromatic
#9A16EC #B34FF0 #CB87F5 #E3BFFA #F3E3FD

Accessibility & contrast

On white

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

On black

8.32
#CB87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87F5
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87F5#FFFFFF#000000##000000
##CB87F51.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA0F9
Deuteranopia (green-blind)
#81A4F2
Tritanopia (blue-blind)
#C798B2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cb87f5;
/* rgb */ color: rgb(203, 135, 245);
/* oklch */ color: oklch(73.4% 0.167 311.4);
Tailwind
colors: {
  custom: {
    50: '#ddabf9',
    500: '#cb87f5',
    950: '#000000',
  },
}
SCSS
$custom: #cb87f5;
$custom-light: #ddabf9;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87f5",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 277.091,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.73398,
    "c": 0.16739,
    "h": 311.4
  },
  "luminance": 0.36617
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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