#CB51E9#CB51E9

#CB51E9 is a light, highly saturated purple. Relative luminance 0.245; OKLCH L 65.5% C 0.235 H 319.1°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#CB51E9
RGBrgb(203, 81, 233)
HSLhsl(288, 78%, 62%)
HSVhsv(288, 65%, 91%)
CMYKcmyk(12.9%, 65.2%, 0%, 8.6%)
CIE-LABlab(56.55, 68.95, -55.06)
CIE-LCHlch(56.55, 88.24, 321.39°)
OKLaboklab(65.53% 0.1779 -0.154)
OKLCHoklch(65.53% 0.235 319.1)
XYZxyz(42.2771, 24.4665, 79.5706)
Luminance0.2447 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51E9 #6FE951
analogous
#7F51E9 #CB51E9 #E951BB
triadic
#CB51E9 #E9CB51 #51E9CB
tetradic
#CB51E9 #E97F51 #6FE951 #51BBE9
square
#CB51E9 #E97F51 #6FE951 #51BBE9
split-complementary
#CB51E9 #BBE951 #51E97F
monochromatic
#8D16AA #BA1CE0 #CB51E9 #DB87F0 #EBBEF7

Accessibility & contrast

On white

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

On black

5.89
#CB51E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51E9
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51E9#FFFFFF#000000##000000
##CB51E91.003.565.895.89
#FFFFFF3.561.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A7FEE
Deuteranopia (green-blind)
#5B8CE5
Tritanopia (blue-blind)
#CB6C97
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #cb51e9;
/* rgb */ color: rgb(203, 81, 233);
/* oklch */ color: oklch(65.5% 0.235 319.1);
Tailwind
colors: {
  custom: {
    50: '#de8af1',
    500: '#cb51e9',
    950: '#000000',
  },
}
SCSS
$custom: #cb51e9;
$custom-light: #de8af1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51e9",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 233
  },
  "hsl": {
    "h": 288.158,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.65533,
    "c": 0.23534,
    "h": 319.1
  },
  "luminance": 0.24465
}

Semantic roles & 50–950 ramp

primary
#CB51E9
secondary
#BAE7AF
accent
#DA0C34
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C17
muted
#847D85

Preview Lab

Preview with #CB51E9

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

Preview Lab → · Contrast checker → · Palette generator →

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