#CB5CEC#CB5CEC

#CB5CEC is a light, highly saturated purple. Relative luminance 0.264; OKLCH L 66.9% C 0.224 H 317.7°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#CB5CEC
RGBrgb(203, 92, 236)
HSLhsl(286, 79%, 64%)
HSVhsv(286, 61%, 93%)
CMYKcmyk(14%, 61%, 0%, 7.5%)
CIE-LABlab(58.42, 64.81, -53.75)
CIE-LCHlch(58.42, 84.20, 320.33°)
OKLaboklab(66.94% 0.1655 -0.1503)
OKLCHoklch(66.94% 0.224 317.7)
XYZxyz(43.5939, 26.4087, 82.1417)
Luminance0.2641 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB5CEC #7DEC5C
analogous
#835CEC #CB5CEC #EC5CC5
triadic
#CB5CEC #ECCB5C #5CECCB
tetradic
#CB5CEC #EC835C #7DEC5C #5CC5EC
square
#CB5CEC #EC835C #7DEC5C #5CC5EC
split-complementary
#CB5CEC #C5EC5C #5CEC83
monochromatic
#9315B8 #BA25E6 #CB5CEC #DC93F2 #EECAF9

Accessibility & contrast

On white

3.34
#CB5CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#CB5CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB5CEC
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB5CEC#FFFFFF#000000##000000
##CB5CEC1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3285F0
Deuteranopia (green-blind)
#6190E8
Tritanopia (blue-blind)
#CA759C
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #cb5cec;
/* rgb */ color: rgb(203, 92, 236);
/* oklch */ color: oklch(66.9% 0.224 317.7);
Tailwind
colors: {
  custom: {
    50: '#de90f3',
    500: '#cb5cec',
    950: '#000000',
  },
}
SCSS
$custom: #cb5cec;
$custom-light: #de90f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cb5cec",
  "rgb": {
    "r": 203,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 286.25,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.66939,
    "c": 0.22354,
    "h": 317.7
  },
  "luminance": 0.26407
}

Semantic roles & 50–950 ramp

primary
#CB5CEC
secondary
#C4EBB9
accent
#DB0A3A
background
#FEF9FE
surface
#FCF1FD
border
#D5CBD5
text
#160D17
muted
#847E85

Preview Lab

Preview with #CB5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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