#CB51B2#CB51B2

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

Color values

HEX#CB51B2
RGBrgb(203, 81, 178)
HSLhsl(312, 54%, 56%)
HSVhsv(312, 60%, 80%)
CMYKcmyk(0%, 60.1%, 12.3%, 20.4%)
CIE-LABlab(53.81, 59.53, -27.99)
CIE-LCHlch(53.81, 65.78, 334.82°)
OKLaboklab(62.65% 0.174 -0.0759)
OKLCHoklch(62.65% 0.19 336.4)
XYZxyz(35.6073, 21.7986, 44.4430)
Luminance0.2180 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51B2 #51CB6A
analogous
#A751CB #CB51B2 #CB5175
triadic
#CB51B2 #B2CB51 #51B2CB
tetradic
#CB51B2 #CBA751 #51CB6A #5175CB
square
#CB51B2 #CBA751 #51CB6A #5175CB
split-complementary
#CB51B2 #75CB51 #51CBA7
monochromatic
#7C256B #AC3393 #CB51B2 #D980C7 #E7AFDC

Accessibility & contrast

On white

3.92
#CB51B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#CB51B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51B2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51B2#FFFFFF#000000##000000
##CB51B21.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5375B5
Deuteranopia (green-blind)
#7887AF
Tritanopia (blue-blind)
#D5577A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cb51b2;
/* rgb */ color: rgb(203, 81, 178);
/* oklch */ color: oklch(62.7% 0.190 336.4);
Tailwind
colors: {
  custom: {
    50: '#de89c9',
    500: '#cb51b2',
    950: '#000000',
  },
}
SCSS
$custom: #cb51b2;
$custom-light: #de89c9;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51b2",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 312.295,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.62654,
    "c": 0.18981,
    "h": 336.4
  },
  "luminance": 0.21796
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB51B2

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

Preview Lab → · Contrast checker → · Palette generator →

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