#CB52EA#CB52EA

#CB52EA is a light, highly saturated purple. Relative luminance 0.247; OKLCH L 65.7% C 0.235 H 318.8°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#CB52EA
RGBrgb(203, 82, 234)
HSLhsl(288, 78%, 62%)
HSVhsv(288, 65%, 92%)
CMYKcmyk(13.2%, 65%, 0%, 8.2%)
CIE-LABlab(56.76, 68.73, -55.29)
CIE-LCHlch(56.76, 88.21, 321.18°)
OKLaboklab(65.7% 0.1768 -0.1547)
OKLCHoklch(65.7% 0.235 318.8)
XYZxyz(42.4952, 24.6735, 80.3500)
Luminance0.2467 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB52EA #71EA52
analogous
#7F52EA #CB52EA #EA52BD
triadic
#CB52EA #EACB52 #52EACB
tetradic
#CB52EA #EA7F52 #71EA52 #52BDEA
square
#CB52EA #EA7F52 #71EA52 #52BDEA
split-complementary
#CB52EA #BDEA52 #52EA7F
monochromatic
#8E15AD #BB1CE3 #CB52EA #DB89F1 #ECBFF7

Accessibility & contrast

On white

3.54
#CB52EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#CB52EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB52EA
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB52EA#FFFFFF#000000##000000
##CB52EA1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B80EF
Deuteranopia (green-blind)
#5B8CE6
Tritanopia (blue-blind)
#CB6D97
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #cb52ea;
/* rgb */ color: rgb(203, 82, 234);
/* oklch */ color: oklch(65.7% 0.235 318.8);
Tailwind
colors: {
  custom: {
    50: '#de8bf1',
    500: '#cb52ea',
    950: '#000000',
  },
}
SCSS
$custom: #cb52ea;
$custom-light: #de8bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb52ea",
  "rgb": {
    "r": 203,
    "g": 82,
    "b": 234
  },
  "hsl": {
    "h": 287.763,
    "s": 78.351,
    "l": 61.961
  },
  "oklch": {
    "l": 0.65698,
    "c": 0.23495,
    "h": 318.8
  },
  "luminance": 0.24672
}

Semantic roles & 50–950 ramp

primary
#CB52EA
secondary
#BBE8B0
accent
#DB0B35
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160D17
muted
#847D85

Preview Lab

Preview with #CB52EA

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

Preview Lab → · Contrast checker → · Palette generator →

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