#C52871#C52871

#C52871 is a mid, vivid pink. Relative luminance 0.146; OKLCH L 55.3% C 0.199 H 358.4°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#C52871
RGBrgb(197, 40, 113)
HSLhsl(332, 66%, 46%)
HSVhsv(332, 80%, 77%)
CMYKcmyk(0%, 79.7%, 42.6%, 22.7%)
CIE-LABlab(45.06, 64.55, -2.47)
CIE-LCHlch(45.06, 64.60, 357.81°)
OKLaboklab(55.25% 0.1986 -0.0057)
OKLCHoklch(55.25% 0.199 358.4)
XYZxyz(26.7675, 14.5837, 17.0250)
Luminance0.1458 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C52871 #28C57C
analogous
#C528C0 #C52871 #C52E28
triadic
#C52871 #71C528 #2871C5
tetradic
#C52871 #C0C528 #28C57C #2E28C5
square
#C52871 #C0C528 #28C57C #2E28C5
split-complementary
#C52871 #28C52E #28C0C5
monochromatic
#5F1337 #921E54 #C52871 #DB4F90 #E682B0

Accessibility & contrast

On white

5.36
#C52871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#C52871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C52871
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C52871#FFFFFF#000000##FFFFFF
##C528711.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5873
Deuteranopia (green-blind)
#77756D
Tritanopia (blue-blind)
#D60149
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #c52871;
/* rgb */ color: rgb(197, 40, 113);
/* oklch */ color: oklch(55.3% 0.199 358.4);
Tailwind
colors: {
  custom: {
    50: '#dc7399',
    500: '#c52871',
    950: '#000000',
  },
}
SCSS
$custom: #c52871;
$custom-light: #dc7399;
$custom-dark: #000000;
JSON
{
  "hex": "#c52871",
  "rgb": {
    "r": 197,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 332.102,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55251,
    "c": 0.19867,
    "h": 358.4
  },
  "luminance": 0.1458
}

Semantic roles & 50–950 ramp

primary
#C52871
secondary
#7ACEA7
accent
#E99A3F
background
#FEF7F9
surface
#FCEDF2
border
#D5C8CC
text
#16090E
muted
#847B7E

Preview Lab

Preview with #C52871

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

Preview Lab → · Contrast checker → · Palette generator →

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