#CB87F7#CB87F7

#CB87F7 is a light, vivid violet. Relative luminance 0.367; OKLCH L 73.5% C 0.170 H 310.8°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#CB87F7
RGBrgb(203, 135, 247)
HSLhsl(276, 88%, 75%)
HSVhsv(276, 45%, 97%)
CMYKcmyk(17.8%, 45.3%, 0%, 3.1%)
CIE-LABlab(67.08, 45.73, -46.13)
CIE-LCHlch(67.08, 64.95, 314.75°)
OKLaboklab(73.5% 0.1109 -0.1284)
OKLCHoklch(73.5% 0.17 310.8)
XYZxyz(50.0781, 36.7407, 92.4312)
Luminance0.3674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87F7 #B3F787
analogous
#9387F7 #CB87F7 #F787EB
triadic
#CB87F7 #F7CB87 #87F7CB
tetradic
#CB87F7 #F79387 #B3F787 #87EBF7
square
#CB87F7 #F79387 #B3F787 #87EBF7
split-complementary
#CB87F7 #EBF787 #87F793
monochromatic
#9914EF #B24EF3 #CB87F7 #E4C0FB #F3E2FD

Accessibility & contrast

On white

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

On black

8.35
#CB87F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87F7
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87F7#FFFFFF#000000##000000
##CB87F71.002.528.358.35
#FFFFFF2.521.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA0FB
Deuteranopia (green-blind)
#80A5F4
Tritanopia (blue-blind)
#C698B3
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cb87f7;
/* rgb */ color: rgb(203, 135, 247);
/* oklch */ color: oklch(73.5% 0.170 310.8);
Tailwind
colors: {
  custom: {
    50: '#ddabfa',
    500: '#cb87f7',
    950: '#000000',
  },
}
SCSS
$custom: #cb87f7;
$custom-light: #ddabfa;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87f7",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 276.429,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.73498,
    "c": 0.16965,
    "h": 310.8
  },
  "luminance": 0.3674
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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