#C51B9A#C51B9A

#C51B9A is a mid, highly saturated pink. Relative luminance 0.150; OKLCH L 56.2% C 0.228 H 341.7°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#C51B9A
RGBrgb(197, 27, 154)
HSLhsl(315, 76%, 44%)
HSVhsv(315, 86%, 77%)
CMYKcmyk(0%, 86.3%, 21.8%, 22.7%)
CIE-LABlab(45.62, 71.97, -26.62)
CIE-LCHlch(45.62, 76.73, 339.70°)
OKLaboklab(56.17% 0.2168 -0.0717)
OKLCHoklch(56.17% 0.228 341.7)
XYZxyz(29.2517, 14.9905, 31.9186)
Luminance0.1499 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C51B9A #1BC546
analogous
#9B1BC5 #C51B9A #C51B45
triadic
#C51B9A #9AC51B #1B9AC5
tetradic
#C51B9A #C59B1B #1BC546 #1B45C5
square
#C51B9A #C59B1B #1BC546 #1B45C5
split-complementary
#C51B9A #45C51B #1BC59B
monochromatic
#590C46 #8F1470 #C51B9A #E439B9 #EB6FCC

Accessibility & contrast

On white

5.25
#C51B9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#C51B9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C51B9A
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C51B9A#FFFFFF#000000##FFFFFF
##C51B9A1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315B9D
Deuteranopia (green-blind)
#697596
Tritanopia (blue-blind)
#D2205D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #c51b9a;
/* rgb */ color: rgb(197, 27, 154);
/* oklch */ color: oklch(56.2% 0.228 341.7);
Tailwind
colors: {
  custom: {
    50: '#db71b8',
    500: '#c51b9a',
    950: '#000000',
  },
}
SCSS
$custom: #c51b9a;
$custom-light: #db71b8;
$custom-dark: #000000;
JSON
{
  "hex": "#c51b9a",
  "rgb": {
    "r": 197,
    "g": 27,
    "b": 154
  },
  "hsl": {
    "h": 315.176,
    "s": 75.893,
    "l": 43.922
  },
  "oklch": {
    "l": 0.56173,
    "c": 0.22836,
    "h": 341.7
  },
  "luminance": 0.14987
}

Semantic roles & 50–950 ramp

primary
#C51B9A
secondary
#6AD184
accent
#F26535
background
#FEF7FB
surface
#FCEDF6
border
#D5C8D0
text
#160911
muted
#847B80

Preview Lab

Preview with #C51B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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