#C42B7E#C42B7E

#C42B7E is a mid, highly saturated pink. Relative luminance 0.150; OKLCH L 55.8% C 0.200 H 352.9°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#C42B7E
RGBrgb(196, 43, 126)
HSLhsl(327, 64%, 47%)
HSVhsv(327, 78%, 77%)
CMYKcmyk(0%, 78.1%, 35.7%, 23.1%)
CIE-LABlab(45.60, 64.78, -9.68)
CIE-LCHlch(45.60, 65.50, 351.50°)
OKLaboklab(55.75% 0.1989 -0.0249)
OKLCHoklch(55.75% 0.2 352.9)
XYZxyz(27.3965, 14.9733, 21.1820)
Luminance0.1497 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42B7E #2BC471
analogous
#BE2BC4 #C42B7E #C42B31
triadic
#C42B7E #7EC42B #2B7EC4
tetradic
#C42B7E #C4BE2B #2BC471 #2B31C4
square
#C42B7E #C4BE2B #2BC471 #2B31C4
split-complementary
#C42B7E #31C42B #2BC4BE
monochromatic
#60153D #92205E #C42B7E #D9539C #E485B9

Accessibility & contrast

On white

5.26
#C42B7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#C42B7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42B7E
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42B7E#FFFFFF#000000##FFFFFF
##C42B7E1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#495A80
Deuteranopia (green-blind)
#74767B
Tritanopia (blue-blind)
#D31951
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #c42b7e;
/* rgb */ color: rgb(196, 43, 126);
/* oklch */ color: oklch(55.8% 0.200 352.9);
Tailwind
colors: {
  custom: {
    50: '#db74a3',
    500: '#c42b7e',
    950: '#000000',
  },
}
SCSS
$custom: #c42b7e;
$custom-light: #db74a3;
$custom-dark: #000000;
JSON
{
  "hex": "#c42b7e",
  "rgb": {
    "r": 196,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 327.451,
    "s": 64.017,
    "l": 46.863
  },
  "oklch": {
    "l": 0.55753,
    "c": 0.20046,
    "h": 352.9
  },
  "luminance": 0.1497
}

Semantic roles & 50–950 ramp

primary
#C42B7E
secondary
#7DCEA2
accent
#E78D41
background
#FEF7FA
surface
#FCEEF3
border
#D5C9CD
text
#16090F
muted
#847B7F

Preview Lab

Preview with #C42B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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