#CB51EA#CB51EA

#CB51EA is a light, highly saturated purple. Relative luminance 0.245; OKLCH L 65.6% C 0.236 H 318.9°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#CB51EA
RGBrgb(203, 81, 234)
HSLhsl(288, 78%, 62%)
HSVhsv(288, 65%, 92%)
CMYKcmyk(13.2%, 65.4%, 0%, 8.2%)
CIE-LABlab(56.61, 69.14, -55.53)
CIE-LCHlch(56.61, 88.67, 321.23°)
OKLaboklab(65.59% 0.1779 -0.1554)
OKLCHoklch(65.59% 0.236 318.9)
XYZxyz(42.4203, 24.5238, 80.3250)
Luminance0.2452 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51EA #70EA51
analogous
#7F51EA #CB51EA #EA51BD
triadic
#CB51EA #EACB51 #51EACB
tetradic
#CB51EA #EA7F51 #70EA51 #51BDEA
square
#CB51EA #EA7F51 #70EA51 #51BDEA
split-complementary
#CB51EA #BDEA51 #51EA7F
monochromatic
#8D15AC #BA1BE2 #CB51EA #DB88F1 #ECBEF7

Accessibility & contrast

On white

3.56
#CB51EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#CB51EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51EA
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51EA#FFFFFF#000000##000000
##CB51EA1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1880EF
Deuteranopia (green-blind)
#5A8CE6
Tritanopia (blue-blind)
#CB6C97
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #cb51ea;
/* rgb */ color: rgb(203, 81, 234);
/* oklch */ color: oklch(65.6% 0.236 318.9);
Tailwind
colors: {
  custom: {
    50: '#df8af1',
    500: '#cb51ea',
    950: '#000000',
  },
}
SCSS
$custom: #cb51ea;
$custom-light: #df8af1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51ea",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 287.843,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.65592,
    "c": 0.23621,
    "h": 318.9
  },
  "luminance": 0.24522
}

Semantic roles & 50–950 ramp

primary
#CB51EA
secondary
#BBE8AF
accent
#DB0B35
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C17
muted
#847D85

Preview Lab

Preview with #CB51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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