#CB51A2#CB51A2

#CB51A2 is a mid, vivid pink. Relative luminance 0.212; OKLCH L 62.0% C 0.179 H 342.9°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#CB51A2
RGBrgb(203, 81, 162)
HSLhsl(320, 54%, 56%)
HSVhsv(320, 60%, 80%)
CMYKcmyk(0%, 60.1%, 20.2%, 20.4%)
CIE-LABlab(53.16, 57.16, -19.65)
CIE-LCHlch(53.16, 60.44, 341.02°)
OKLaboklab(61.96% 0.1708 -0.0524)
OKLCHoklch(61.96% 0.179 342.9)
XYZxyz(34.0935, 21.1931, 36.4705)
Luminance0.2119 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51A2 #51CB7A
analogous
#B751CB #CB51A2 #CB5165
triadic
#CB51A2 #A2CB51 #51A2CB
tetradic
#CB51A2 #CBB751 #51CB7A #5165CB
square
#CB51A2 #CBB751 #51CB7A #5165CB
split-complementary
#CB51A2 #65CB51 #51CBB7
monochromatic
#7C255F #AC3383 #CB51A2 #D980BB #E7AFD4

Accessibility & contrast

On white

4.01
#CB51A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#CB51A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51A2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51A2#FFFFFF#000000##000000
##CB51A21.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B72A5
Deuteranopia (green-blind)
#7E869F
Tritanopia (blue-blind)
#D75172
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cb51a2;
/* rgb */ color: rgb(203, 81, 162);
/* oklch */ color: oklch(62.0% 0.179 342.9);
Tailwind
colors: {
  custom: {
    50: '#de88bd',
    500: '#cb51a2',
    950: '#000000',
  },
}
SCSS
$custom: #cb51a2;
$custom-light: #de88bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51a2",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 320.164,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.61961,
    "c": 0.17868,
    "h": 342.9
  },
  "luminance": 0.2119
}

Semantic roles & 50–950 ramp

primary
#CB51A2
secondary
#A3D5B4
accent
#DD7C4A
background
#FEF8FB
surface
#FCF0F6
border
#D5CBD0
text
#160C12
muted
#847D81

Preview Lab

Preview with #CB51A2

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

Preview Lab → · Contrast checker → · Palette generator →

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