#CB52EF#CB52EF

#CB52EF is a light, highly saturated purple. Relative luminance 0.250; OKLCH L 66.0% C 0.239 H 317.5°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#CB52EF
RGBrgb(203, 82, 239)
HSLhsl(286, 83%, 63%)
HSVhsv(286, 66%, 94%)
CMYKcmyk(15.1%, 65.7%, 0%, 6.3%)
CIE-LABlab(57.04, 69.67, -57.63)
CIE-LCHlch(57.04, 90.42, 320.40°)
OKLaboklab(66% 0.1767 -0.1616)
OKLCHoklch(66% 0.239 317.5)
XYZxyz(43.2237, 24.9649, 84.1865)
Luminance0.2496 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB52EF #76EF52
analogous
#7C52EF #CB52EF #EF52C4
triadic
#CB52EF #EFCB52 #52EFCB
tetradic
#CB52EF #EF7C52 #76EF52 #52C4EF
square
#CB52EF #EF7C52 #76EF52 #52C4EF
split-complementary
#CB52EF #C4EF52 #52EF7C
monochromatic
#9011B6 #BA1AEA #CB52EF #DC8AF4 #EDC2F9

Accessibility & contrast

On white

3.50
#CB52EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#CB52EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB52EF
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB52EF#FFFFFF#000000##000000
##CB52EF1.003.505.995.99
#FFFFFF3.501.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A81F4
Deuteranopia (green-blind)
#578DEB
Tritanopia (blue-blind)
#CA6F9A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #cb52ef;
/* rgb */ color: rgb(203, 82, 239);
/* oklch */ color: oklch(66.0% 0.239 317.5);
Tailwind
colors: {
  custom: {
    50: '#df8bf5',
    500: '#cb52ef',
    950: '#000000',
  },
}
SCSS
$custom: #cb52ef;
$custom-light: #df8bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#cb52ef",
  "rgb": {
    "r": 203,
    "g": 82,
    "b": 239
  },
  "hsl": {
    "h": 286.242,
    "s": 83.069,
    "l": 62.941
  },
  "oklch": {
    "l": 0.65995,
    "c": 0.23941,
    "h": 317.5
  },
  "luminance": 0.24963
}

Semantic roles & 50–950 ramp

primary
#CB52EF
secondary
#BFEBB2
accent
#DF0638
background
#FEF8FF
surface
#FCF0FE
border
#D5CBD6
text
#160D17
muted
#847D85

Preview Lab

Preview with #CB52EF

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

Preview Lab → · Contrast checker → · Palette generator →

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