#CB87FD#CB87FD

#CB87FD is a light, vivid violet. Relative luminance 0.371; OKLCH L 73.8% C 0.176 H 309.3°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#CB87FD
RGBrgb(203, 135, 253)
HSLhsl(275, 97%, 76%)
HSVhsv(275, 47%, 99%)
CMYKcmyk(19.8%, 46.6%, 0%, 0.8%)
CIE-LABlab(67.36, 47.02, -48.97)
CIE-LCHlch(67.36, 67.89, 313.84°)
OKLaboklab(73.8% 0.1118 -0.1366)
OKLCHoklch(73.8% 0.176 309.3)
XYZxyz(51.0188, 37.1170, 97.3861)
Luminance0.3712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB87FD #B9FD87
analogous
#9087FD #CB87FD #FD87F4
triadic
#CB87FD #FDCB87 #87FDCB
tetradic
#CB87FD #FD9087 #B9FD87 #87F4FD
square
#CB87FD #FD9087 #B9FD87 #87F4FD
split-complementary
#CB87FD #F4FD87 #87FD90
monochromatic
#970FFB #B14BFC #CB87FD #E5C3FE #F2E1FE

Accessibility & contrast

On white

2.49
#CB87FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#CB87FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB87FD
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB87FD#FFFFFF#000000##000000
##CB87FD1.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6AA1FF
Deuteranopia (green-blind)
#7DA5FA
Tritanopia (blue-blind)
#C59AB6
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cb87fd;
/* rgb */ color: rgb(203, 135, 253);
/* oklch */ color: oklch(73.8% 0.176 309.3);
Tailwind
colors: {
  custom: {
    50: '#ddabfe',
    500: '#cb87fd',
    950: '#000000',
  },
}
SCSS
$custom: #cb87fd;
$custom-light: #ddabfe;
$custom-dark: #000000;
JSON
{
  "hex": "#cb87fd",
  "rgb": {
    "r": 203,
    "g": 135,
    "b": 253
  },
  "hsl": {
    "h": 274.576,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.73801,
    "c": 0.17648,
    "h": 309.3
  },
  "luminance": 0.37116
}

Semantic roles & 50–950 ramp

primary
#CB87FD
secondary
#E3F7D4
accent
#E60061
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CB87FD

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

Preview Lab → · Contrast checker → · Palette generator →

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