#C42871#C42871

#C42871 is a mid, vivid pink. Relative luminance 0.144; OKLCH L 55.1% C 0.198 H 358.1°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#C42871
RGBrgb(196, 40, 113)
HSLhsl(332, 66%, 46%)
HSVhsv(332, 80%, 77%)
CMYKcmyk(0%, 79.6%, 42.3%, 23.1%)
CIE-LABlab(44.87, 64.30, -2.77)
CIE-LCHlch(44.87, 64.36, 357.53°)
OKLaboklab(55.08% 0.1978 -0.0065)
OKLCHoklch(55.08% 0.198 358.1)
XYZxyz(26.5064, 14.4491, 17.0127)
Luminance0.1445 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42871 #28C47B
analogous
#C428BF #C42871 #C42D28
triadic
#C42871 #71C428 #2871C4
tetradic
#C42871 #BFC428 #28C47B #2D28C4
square
#C42871 #BFC428 #28C47B #2D28C4
split-complementary
#C42871 #28C42D #28BFC4
monochromatic
#5E1336 #911E54 #C42871 #DB4E90 #E581B0

Accessibility & contrast

On white

5.40
#C42871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#C42871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42871
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42871#FFFFFF#000000##FFFFFF
##C428711.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5773
Deuteranopia (green-blind)
#77756D
Tritanopia (blue-blind)
#D50349
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #c42871;
/* rgb */ color: rgb(196, 40, 113);
/* oklch */ color: oklch(55.1% 0.198 358.1);
Tailwind
colors: {
  custom: {
    50: '#dc7399',
    500: '#c42871',
    950: '#000000',
  },
}
SCSS
$custom: #c42871;
$custom-light: #dc7399;
$custom-dark: #000000;
JSON
{
  "hex": "#c42871",
  "rgb": {
    "r": 196,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 331.923,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55079,
    "c": 0.19792,
    "h": 358.1
  },
  "luminance": 0.14446
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C42871

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

Preview Lab → · Contrast checker → · Palette generator →

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