#CB52E8#CB52E8

#CB52E8 is a light, highly saturated purple. Relative luminance 0.246; OKLCH L 65.6% C 0.233 H 319.3°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#CB52E8
RGBrgb(203, 82, 232)
HSLhsl(288, 77%, 62%)
HSVhsv(288, 65%, 91%)
CMYKcmyk(12.5%, 64.7%, 0%, 9%)
CIE-LABlab(56.64, 68.35, -54.35)
CIE-LCHlch(56.64, 87.33, 321.51°)
OKLaboklab(65.58% 0.1768 -0.152)
OKLCHoklch(65.58% 0.233 319.3)
XYZxyz(42.2095, 24.5592, 78.8453)
Luminance0.2456 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB52E8 #6FE852
analogous
#8052E8 #CB52E8 #E852BA
triadic
#CB52E8 #E8CB52 #52E8CB
tetradic
#CB52E8 #E88052 #6FE852 #52BAE8
square
#CB52E8 #E88052 #6FE852 #52BAE8
split-complementary
#CB52E8 #BAE852 #52E880
monochromatic
#8D16A9 #BA1EDF #CB52E8 #DB88EF #EBBEF6

Accessibility & contrast

On white

3.55
#CB52E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#CB52E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB52E8
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB52E8#FFFFFF#000000##000000
##CB52E81.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2080EC
Deuteranopia (green-blind)
#5C8CE4
Tritanopia (blue-blind)
#CB6C96
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #cb52e8;
/* rgb */ color: rgb(203, 82, 232);
/* oklch */ color: oklch(65.6% 0.233 319.3);
Tailwind
colors: {
  custom: {
    50: '#de8bf0',
    500: '#cb52e8',
    950: '#000000',
  },
}
SCSS
$custom: #cb52e8;
$custom-light: #de8bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#cb52e8",
  "rgb": {
    "r": 203,
    "g": 82,
    "b": 232
  },
  "hsl": {
    "h": 288.4,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.65581,
    "c": 0.23317,
    "h": 319.3
  },
  "luminance": 0.24557
}

Semantic roles & 50–950 ramp

primary
#CB52E8
secondary
#BAE7AF
accent
#D90D34
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160D17
muted
#847D85

Preview Lab

Preview with #CB52E8

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

Preview Lab → · Contrast checker → · Palette generator →

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