#C42D7B#C42D7B

#C42D7B is a mid, vivid pink. Relative luminance 0.150; OKLCH L 55.8% C 0.197 H 354.3°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#C42D7B
RGBrgb(196, 45, 123)
HSLhsl(329, 63%, 47%)
HSVhsv(329, 77%, 77%)
CMYKcmyk(0%, 77%, 37.2%, 23.1%)
CIE-LABlab(45.70, 63.88, -7.70)
CIE-LCHlch(45.70, 64.34, 353.13°)
OKLaboklab(55.79% 0.1963 -0.0195)
OKLCHoklch(55.79% 0.197 354.3)
XYZxyz(27.2803, 15.0460, 20.2026)
Luminance0.1504 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42D7B #2DC476
analogous
#C22DC4 #C42D7B #C42D2F
triadic
#C42D7B #7BC42D #2D7BC4
tetradic
#C42D7B #C4C22D #2DC476 #2D2FC4
square
#C42D7B #C4C22D #2DC476 #2D2FC4
split-complementary
#C42D7B #2FC42D #2DC4C2
monochromatic
#60163D #92225C #C42D7B #D85699 #E488B7

Accessibility & contrast

On white

5.24
#C42D7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#C42D7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42D7B
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42D7B#FFFFFF#000000##FFFFFF
##C42D7B1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5B7D
Deuteranopia (green-blind)
#767678
Tritanopia (blue-blind)
#D41A50
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #c42d7b;
/* rgb */ color: rgb(196, 45, 123);
/* oklch */ color: oklch(55.8% 0.197 354.3);
Tailwind
colors: {
  custom: {
    50: '#db75a1',
    500: '#c42d7b',
    950: '#000000',
  },
}
SCSS
$custom: #c42d7b;
$custom-light: #db75a1;
$custom-dark: #000000;
JSON
{
  "hex": "#c42d7b",
  "rgb": {
    "r": 196,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 329.007,
    "s": 62.656,
    "l": 47.255
  },
  "oklch": {
    "l": 0.55791,
    "c": 0.19722,
    "h": 354.3
  },
  "luminance": 0.15043
}

Semantic roles & 50–950 ramp

primary
#C42D7B
secondary
#80CDA5
accent
#E69142
background
#FEF7F9
surface
#FCEEF2
border
#D5C9CC
text
#16090E
muted
#847B7E

Preview Lab

Preview with #C42D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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