#CB51B3#CB51B3

#CB51B3 is a light, vivid pink. Relative luminance 0.218; OKLCH L 62.7% C 0.191 H 336.1°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#CB51B3
RGBrgb(203, 81, 179)
HSLhsl(312, 54%, 56%)
HSVhsv(312, 60%, 80%)
CMYKcmyk(0%, 60.1%, 11.8%, 20.4%)
CIE-LABlab(53.86, 59.68, -28.51)
CIE-LCHlch(53.86, 66.14, 334.47°)
OKLaboklab(62.7% 0.1742 -0.0773)
OKLCHoklch(62.7% 0.191 336.1)
XYZxyz(35.7081, 21.8389, 44.9737)
Luminance0.2184 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51B3 #51CB69
analogous
#A651CB #CB51B3 #CB5176
triadic
#CB51B3 #B3CB51 #51B3CB
tetradic
#CB51B3 #CBA651 #51CB69 #5176CB
square
#CB51B3 #CBA651 #51CB69 #5176CB
split-complementary
#CB51B3 #76CB51 #51CBA6
monochromatic
#7C256B #AC3394 #CB51B3 #D980C8 #E7AFDC

Accessibility & contrast

On white

3.91
#CB51B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#CB51B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51B3
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51B3#FFFFFF#000000##000000
##CB51B31.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5275B6
Deuteranopia (green-blind)
#7887B0
Tritanopia (blue-blind)
#D5577B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cb51b3;
/* rgb */ color: rgb(203, 81, 179);
/* oklch */ color: oklch(62.7% 0.191 336.1);
Tailwind
colors: {
  custom: {
    50: '#de89ca',
    500: '#cb51b3',
    950: '#000000',
  },
}
SCSS
$custom: #cb51b3;
$custom-light: #de89ca;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51b3",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 179
  },
  "hsl": {
    "h": 311.803,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.627,
    "c": 0.19056,
    "h": 336.1
  },
  "luminance": 0.21836
}

Semantic roles & 50–950 ramp

primary
#CB51B3
secondary
#A3D5AD
accent
#DD674A
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#150C13
muted
#847D82

Preview Lab

Preview with #CB51B3

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

Preview Lab → · Contrast checker → · Palette generator →

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