#CB51A8#CB51A8

#CB51A8 is a light, vivid pink. Relative luminance 0.214; OKLCH L 62.2% C 0.183 H 340.4°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#CB51A8
RGBrgb(203, 81, 168)
HSLhsl(317, 54%, 56%)
HSVhsv(317, 60%, 80%)
CMYKcmyk(0%, 60.1%, 17.2%, 20.4%)
CIE-LABlab(53.40, 58.02, -22.81)
CIE-LCHlch(53.40, 62.34, 338.54°)
OKLaboklab(62.21% 0.1721 -0.0612)
OKLCHoklch(62.21% 0.183 340.4)
XYZxyz(34.6396, 21.4115, 39.3467)
Luminance0.2141 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51A8 #51CB74
analogous
#B151CB #CB51A8 #CB516B
triadic
#CB51A8 #A8CB51 #51A8CB
tetradic
#CB51A8 #CBB151 #51CB74 #516BCB
square
#CB51A8 #CBB151 #51CB74 #516BCB
split-complementary
#CB51A8 #6BCB51 #51CBB1
monochromatic
#7C2563 #AC3389 #CB51A8 #D980C0 #E7AFD7

Accessibility & contrast

On white

3.98
#CB51A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#CB51A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51A8
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51A8#FFFFFF#000000##000000
##CB51A81.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5873AB
Deuteranopia (green-blind)
#7C87A5
Tritanopia (blue-blind)
#D65375
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cb51a8;
/* rgb */ color: rgb(203, 81, 168);
/* oklch */ color: oklch(62.2% 0.183 340.4);
Tailwind
colors: {
  custom: {
    50: '#de88c2',
    500: '#cb51a8',
    950: '#000000',
  },
}
SCSS
$custom: #cb51a8;
$custom-light: #de88c2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51a8",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 168
  },
  "hsl": {
    "h": 317.213,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.62213,
    "c": 0.18268,
    "h": 340.4
  },
  "luminance": 0.21409
}

Semantic roles & 50–950 ramp

primary
#CB51A8
secondary
#A3D5B1
accent
#DD754A
background
#FEF8FB
surface
#FCF0F7
border
#D5CBD0
text
#160C12
muted
#847D81

Preview Lab

Preview with #CB51A8

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

Preview Lab → · Contrast checker → · Palette generator →

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