#CB51BD#CB51BD

#CB51BD is a light, vivid purple. Relative luminance 0.223; OKLCH L 63.2% C 0.198 H 332.4°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#CB51BD
RGBrgb(203, 81, 189)
HSLhsl(307, 54%, 56%)
HSVhsv(307, 60%, 80%)
CMYKcmyk(0%, 60.1%, 6.9%, 20.4%)
CIE-LABlab(54.30, 61.26, -33.60)
CIE-LCHlch(54.30, 69.87, 331.26°)
OKLaboklab(63.17% 0.1756 -0.0919)
OKLCHoklch(63.17% 0.198 332.4)
XYZxyz(36.7563, 22.2582, 50.4946)
Luminance0.2225 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51BD #51CB5F
analogous
#9C51CB #CB51BD #CB5180
triadic
#CB51BD #BDCB51 #51BDCB
tetradic
#CB51BD #CB9C51 #51CB5F #5180CB
square
#CB51BD #CB9C51 #51CB5F #5180CB
split-complementary
#CB51BD #80CB51 #51CB9C
monochromatic
#7C2572 #AC339E #CB51BD #D980CF #E7AFE1

Accessibility & contrast

On white

3.85
#CB51BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#CB51BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51BD
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51BD#FFFFFF#000000##000000
##CB51BD1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D77C0
Deuteranopia (green-blind)
#7488BA
Tritanopia (blue-blind)
#D35B80
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #cb51bd;
/* rgb */ color: rgb(203, 81, 189);
/* oklch */ color: oklch(63.2% 0.198 332.4);
Tailwind
colors: {
  custom: {
    50: '#de89d1',
    500: '#cb51bd',
    950: '#000000',
  },
}
SCSS
$custom: #cb51bd;
$custom-light: #de89d1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51bd",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 306.885,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.6317,
    "c": 0.1982,
    "h": 332.4
  },
  "luminance": 0.22255
}

Semantic roles & 50–950 ramp

primary
#CB51BD
secondary
#A3D5A8
accent
#DD5B4A
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#150C14
muted
#847D82

Preview Lab

Preview with #CB51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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