#CB51A5#CB51A5

#CB51A5 is a light, vivid pink. Relative luminance 0.213; OKLCH L 62.1% C 0.181 H 341.7°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#CB51A5
RGBrgb(203, 81, 165)
HSLhsl(319, 54%, 56%)
HSVhsv(319, 60%, 80%)
CMYKcmyk(0%, 60.1%, 18.7%, 20.4%)
CIE-LABlab(53.28, 57.59, -21.23)
CIE-LCHlch(53.28, 61.38, 339.76°)
OKLaboklab(62.09% 0.1715 -0.0568)
OKLCHoklch(62.09% 0.181 341.7)
XYZxyz(34.3634, 21.3010, 37.8917)
Luminance0.2130 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51A5 #51CB77
analogous
#B451CB #CB51A5 #CB5168
triadic
#CB51A5 #A5CB51 #51A5CB
tetradic
#CB51A5 #CBB451 #51CB77 #5168CB
square
#CB51A5 #CBB451 #51CB77 #5168CB
split-complementary
#CB51A5 #68CB51 #51CBB4
monochromatic
#7C2561 #AC3386 #CB51A5 #D980BD #E7AFD6

Accessibility & contrast

On white

3.99
#CB51A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#CB51A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51A5
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51A5#FFFFFF#000000##000000
##CB51A51.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5973A8
Deuteranopia (green-blind)
#7D87A2
Tritanopia (blue-blind)
#D75274
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cb51a5;
/* rgb */ color: rgb(203, 81, 165);
/* oklch */ color: oklch(62.1% 0.181 341.7);
Tailwind
colors: {
  custom: {
    50: '#de88c0',
    500: '#cb51a5',
    950: '#000000',
  },
}
SCSS
$custom: #cb51a5;
$custom-light: #de88c0;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51a5",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 165
  },
  "hsl": {
    "h": 318.689,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.62085,
    "c": 0.18065,
    "h": 341.7
  },
  "luminance": 0.21298
}

Semantic roles & 50–950 ramp

primary
#CB51A5
secondary
#A3D5B2
accent
#DD784A
background
#FEF8FB
surface
#FCF0F7
border
#D5CBD0
text
#160C12
muted
#847D81

Preview Lab

Preview with #CB51A5

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

Preview Lab → · Contrast checker → · Palette generator →

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