#CB87F8#CB87F8

#CB87F8 is a light, vivid violet. Relative luminance 0.368; OKLCH L 73.5% C 0.171 H 310.6°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#CB87F8
RGBrgb(203, 135, 248)
HSLhsl(276, 89%, 75%)
HSVhsv(276, 46%, 97%)
CMYKcmyk(18.1%, 45.6%, 0%, 2.7%)
CIE-LABlab(67.13, 45.94, -46.60)
CIE-LCHlch(67.13, 65.44, 314.59°)
OKLaboklab(73.55% 0.1111 -0.1297)
OKLCHoklch(73.55% 0.171 310.6)
XYZxyz(50.2328, 36.8026, 93.2461)
Luminance0.3680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87F8 #B4F887
analogous
#9287F8 #CB87F8 #F887ED
triadic
#CB87F8 #F8CB87 #87F8CB
tetradic
#CB87F8 #F89287 #B4F887 #87EDF8
square
#CB87F8 #F89287 #B4F887 #87EDF8
split-complementary
#CB87F8 #EDF887 #87F892
monochromatic
#9913F1 #B24DF5 #CB87F8 #E4C1FB #F2E2FD

Accessibility & contrast

On white

2.51
#CB87F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.36
#CB87F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87F8
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87F8#FFFFFF#000000##000000
##CB87F81.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA0FC
Deuteranopia (green-blind)
#7FA5F5
Tritanopia (blue-blind)
#C699B4
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cb87f8;
/* rgb */ color: rgb(203, 135, 248);
/* oklch */ color: oklch(73.5% 0.171 310.6);
Tailwind
colors: {
  custom: {
    50: '#ddabfb',
    500: '#cb87f8',
    950: '#000000',
  },
}
SCSS
$custom: #cb87f8;
$custom-light: #ddabfb;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87f8",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 276.106,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.73548,
    "c": 0.17079,
    "h": 310.6
  },
  "luminance": 0.36802
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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