#CB51D8#CB51D8

#CB51D8 is a light, highly saturated purple. Relative luminance 0.235; OKLCH L 64.6% C 0.221 H 323.7°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#CB51D8
RGBrgb(203, 81, 216)
HSLhsl(294, 63%, 58%)
HSVhsv(294, 63%, 85%)
CMYKcmyk(6%, 62.5%, 0%, 15.3%)
CIE-LABlab(55.63, 65.85, -46.95)
CIE-LCHlch(55.63, 80.88, 324.51°)
OKLaboklab(64.57% 0.1778 -0.1304)
OKLCHoklch(64.57% 0.221 323.7)
XYZxyz(39.9646, 23.5415, 67.3914)
Luminance0.2354 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51D8 #5ED851
analogous
#8751D8 #CB51D8 #D851A1
triadic
#CB51D8 #D8CB51 #51D8CB
tetradic
#CB51D8 #D88751 #5ED851 #51A1D8
square
#CB51D8 #D88751 #5ED851 #51A1D8
split-complementary
#CB51D8 #A1D851 #51D887
monochromatic
#84208F #B22BC1 #CB51D8 #DA83E3 #E9B5EE

Accessibility & contrast

On white

3.68
#CB51D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#CB51D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51D8
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51D8#FFFFFF#000000##000000
##CB51D81.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#367CDC
Deuteranopia (green-blind)
#668AD4
Tritanopia (blue-blind)
#CF658D
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #cb51d8;
/* rgb */ color: rgb(203, 81, 216);
/* oklch */ color: oklch(64.6% 0.221 323.7);
Tailwind
colors: {
  custom: {
    50: '#de8ae4',
    500: '#cb51d8',
    950: '#000000',
  },
}
SCSS
$custom: #cb51d8;
$custom-light: #de8ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51d8",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 294.222,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.64566,
    "c": 0.22051,
    "h": 323.7
  },
  "luminance": 0.23539
}

Semantic roles & 50–950 ramp

primary
#CB51D8
secondary
#ADDDA8
accent
#E64151
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CB51D8

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

Preview Lab → · Contrast checker → · Palette generator →

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