#CB81EA#CB81EA

#CB81EA is a light, vivid purple. Relative luminance 0.343; OKLCH L 71.9% C 0.165 H 315.3°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#CB81EA
RGBrgb(203, 129, 234)
HSLhsl(282, 71%, 71%)
HSVhsv(282, 45%, 92%)
CMYKcmyk(13.2%, 44.9%, 0%, 8.2%)
CIE-LABlab(65.23, 46.17, -41.88)
CIE-LCHlch(65.23, 62.34, 317.79°)
OKLaboklab(71.92% 0.1173 -0.116)
OKLCHoklch(71.92% 0.165 315.3)
XYZxyz(47.3278, 34.3388, 81.9609)
Luminance0.3434 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB81EA #A0EA81
analogous
#9681EA #CB81EA #EA81D4
triadic
#CB81EA #EACB81 #81EACB
tetradic
#CB81EA #EA9681 #A0EA81 #81D4EA
square
#CB81EA #EA9681 #A0EA81 #81D4EA
split-complementary
#CB81EA #D4EA81 #81EA96
monochromatic
#9B22CE #B54DE1 #CB81EA #E1B5F3 #F4E5FB

Accessibility & contrast

On white

2.67
#CB81EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#CB81EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB81EA
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB81EA#FFFFFF#000000##000000
##CB81EA1.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9AEE
Deuteranopia (green-blind)
#81A0E7
Tritanopia (blue-blind)
#C990AB
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cb81ea;
/* rgb */ color: rgb(203, 129, 234);
/* oklch */ color: oklch(71.9% 0.165 315.3);
Tailwind
colors: {
  custom: {
    50: '#dca7f1',
    500: '#cb81ea',
    950: '#000000',
  },
}
SCSS
$custom: #cb81ea;
$custom-light: #dca7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb81ea",
  "rgb": {
    "r": 203,
    "g": 129,
    "b": 234
  },
  "hsl": {
    "h": 282.286,
    "s": 71.429,
    "l": 71.176
  },
  "oklch": {
    "l": 0.7192,
    "c": 0.16497,
    "h": 315.3
  },
  "luminance": 0.34338
}

Semantic roles & 50–950 ramp

primary
#CB81EA
secondary
#DEF1D6
accent
#D3124B
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CB81EA

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

Preview Lab → · Contrast checker → · Palette generator →

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