#CB81EC#CB81EC

#CB81EC is a light, vivid purple. Relative luminance 0.345; OKLCH L 72.0% C 0.167 H 314.7°. Best body text is #000000 at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#CB81EC
RGBrgb(203, 129, 236)
HSLhsl(281, 74%, 72%)
HSVhsv(281, 45%, 93%)
CMYKcmyk(14%, 45.3%, 0%, 7.5%)
CIE-LABlab(65.32, 46.59, -42.84)
CIE-LCHlch(65.32, 63.29, 317.40°)
OKLaboklab(72.02% 0.1176 -0.1188)
OKLCHoklch(72.02% 0.167 314.7)
XYZxyz(47.6168, 34.4544, 83.4826)
Luminance0.3445 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB81EC #A2EC81
analogous
#9681EC #CB81EC #EC81D8
triadic
#CB81EC #ECCB81 #81ECCB
tetradic
#CB81EC #EC9681 #A2EC81 #81D8EC
square
#CB81EC #EC9681 #A2EC81 #81D8EC
split-complementary
#CB81EC #D8EC81 #81EC96
monochromatic
#9C20D3 #B54CE4 #CB81EC #E1B6F4 #F4E4FB

Accessibility & contrast

On white

2.66
#CB81EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.89
#CB81EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB81EC
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB81EC#FFFFFF#000000##000000
##CB81EC1.002.667.897.89
#FFFFFF2.661.0021.0021.00
#0000007.8921.001.001.00
##0000007.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9AF0
Deuteranopia (green-blind)
#80A1E9
Tritanopia (blue-blind)
#C991AB
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cb81ec;
/* rgb */ color: rgb(203, 129, 236);
/* oklch */ color: oklch(72.0% 0.167 314.7);
Tailwind
colors: {
  custom: {
    50: '#dda7f2',
    500: '#cb81ec',
    950: '#000000',
  },
}
SCSS
$custom: #cb81ec;
$custom-light: #dda7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb81ec",
  "rgb": {
    "r": 203,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 281.495,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.72017,
    "c": 0.16716,
    "h": 314.7
  },
  "luminance": 0.34453
}

Semantic roles & 50–950 ramp

primary
#CB81EC
secondary
#DFF2D7
accent
#D6104D
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CB81EC

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

Preview Lab → · Contrast checker → · Palette generator →

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