#CB51C2#CB51C2

#CB51C2 is a light, highly saturated purple. Relative luminance 0.225; OKLCH L 63.4% C 0.202 H 330.6°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#CB51C2
RGBrgb(203, 81, 194)
HSLhsl(304, 54%, 56%)
HSVhsv(304, 60%, 80%)
CMYKcmyk(0%, 60.1%, 4.4%, 20.4%)
CIE-LABlab(54.53, 62.08, -36.12)
CIE-LCHlch(54.53, 71.82, 329.81°)
OKLaboklab(63.42% 0.1762 -0.0991)
OKLCHoklch(63.42% 0.202 330.6)
XYZxyz(37.3084, 22.4790, 53.4023)
Luminance0.2248 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51C2 #51CB5A
analogous
#9751CB #CB51C2 #CB5185
triadic
#CB51C2 #C2CB51 #51C2CB
tetradic
#CB51C2 #CB9751 #51CB5A #5185CB
square
#CB51C2 #CB9751 #51CB5A #5185CB
split-complementary
#CB51C2 #85CB51 #51CB97
monochromatic
#7C2576 #AC33A3 #CB51C2 #D980D3 #E7AFE3

Accessibility & contrast

On white

3.82
#CB51C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#CB51C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51C2
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51C2#FFFFFF#000000##000000
##CB51C21.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4978C5
Deuteranopia (green-blind)
#7289BF
Tritanopia (blue-blind)
#D25D82
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #cb51c2;
/* rgb */ color: rgb(203, 81, 194);
/* oklch */ color: oklch(63.4% 0.202 330.6);
Tailwind
colors: {
  custom: {
    50: '#de89d5',
    500: '#cb51c2',
    950: '#000000',
  },
}
SCSS
$custom: #cb51c2;
$custom-light: #de89d5;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51c2",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 304.426,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.63415,
    "c": 0.20218,
    "h": 330.6
  },
  "luminance": 0.22476
}

Semantic roles & 50–950 ramp

primary
#CB51C2
secondary
#A3D5A6
accent
#DD554A
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#150C14
muted
#847D83

Preview Lab

Preview with #CB51C2

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

Preview Lab → · Contrast checker → · Palette generator →

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