#CB51BB#CB51BB

#CB51BB is a light, vivid purple. Relative luminance 0.222; OKLCH L 63.1% C 0.197 H 333.1°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#CB51BB
RGBrgb(203, 81, 187)
HSLhsl(308, 54%, 56%)
HSVhsv(308, 60%, 80%)
CMYKcmyk(0%, 60.1%, 7.9%, 20.4%)
CIE-LABlab(54.21, 60.94, -32.59)
CIE-LCHlch(54.21, 69.11, 331.86°)
OKLaboklab(63.07% 0.1754 -0.089)
OKLCHoklch(63.07% 0.197 333.1)
XYZxyz(36.5407, 22.1719, 49.3591)
Luminance0.2217 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51BB #51CB61
analogous
#9E51CB #CB51BB #CB517E
triadic
#CB51BB #BBCB51 #51BBCB
tetradic
#CB51BB #CB9E51 #51CB61 #517ECB
square
#CB51BB #CB9E51 #51CB61 #517ECB
split-complementary
#CB51BB #7ECB51 #51CB9E
monochromatic
#7C2571 #AC339C #CB51BB #D980CD #E7AFE0

Accessibility & contrast

On white

3.86
#CB51BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#CB51BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51BB
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51BB#FFFFFF#000000##000000
##CB51BB1.003.865.435.43
#FFFFFF3.861.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E76BE
Deuteranopia (green-blind)
#7588B8
Tritanopia (blue-blind)
#D35A7F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #cb51bb;
/* rgb */ color: rgb(203, 81, 187);
/* oklch */ color: oklch(63.1% 0.197 333.1);
Tailwind
colors: {
  custom: {
    50: '#de89d0',
    500: '#cb51bb',
    950: '#000000',
  },
}
SCSS
$custom: #cb51bb;
$custom-light: #de89d0;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51bb",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 307.869,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.63074,
    "c": 0.19665,
    "h": 333.1
  },
  "luminance": 0.22169
}

Semantic roles & 50–950 ramp

primary
#CB51BB
secondary
#A3D5A9
accent
#DD5E4A
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#150C14
muted
#847D82

Preview Lab

Preview with #CB51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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