#C42A7F#C42A7F

#C42A7F is a mid, highly saturated pink. Relative luminance 0.149; OKLCH L 55.7% C 0.202 H 352.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#C42A7F
RGBrgb(196, 42, 127)
HSLhsl(327, 65%, 47%)
HSVhsv(327, 79%, 77%)
CMYKcmyk(0%, 78.6%, 35.2%, 23.1%)
CIE-LABlab(45.53, 65.17, -10.39)
CIE-LCHlch(45.53, 65.99, 350.94°)
OKLaboklab(55.72% 0.2001 -0.0268)
OKLCHoklch(55.72% 0.202 352.4)
XYZxyz(27.4254, 14.9274, 21.5116)
Luminance0.1492 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42A7F #2AC46F
analogous
#BC2AC4 #C42A7F #C42A32
triadic
#C42A7F #7FC42A #2A7FC4
tetradic
#C42A7F #C4BC2A #2AC46F #2A32C4
square
#C42A7F #C4BC2A #2AC46F #2A32C4
split-complementary
#C42A7F #32C42A #2AC4BC
monochromatic
#5F143E #921F5E #C42A7F #DA519D #E584B9

Accessibility & contrast

On white

5.27
#C42A7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#C42A7F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42A7F
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42A7F#FFFFFF#000000##FFFFFF
##C42A7F1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485A81
Deuteranopia (green-blind)
#74767C
Tritanopia (blue-blind)
#D31951
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #c42a7f;
/* rgb */ color: rgb(196, 42, 127);
/* oklch */ color: oklch(55.7% 0.202 352.4);
Tailwind
colors: {
  custom: {
    50: '#db74a4',
    500: '#c42a7f',
    950: '#000000',
  },
}
SCSS
$custom: #c42a7f;
$custom-light: #db74a4;
$custom-dark: #000000;
JSON
{
  "hex": "#c42a7f",
  "rgb": {
    "r": 196,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 326.883,
    "s": 64.706,
    "l": 46.667
  },
  "oklch": {
    "l": 0.55719,
    "c": 0.20185,
    "h": 352.4
  },
  "luminance": 0.14924
}

Semantic roles & 50–950 ramp

primary
#C42A7F
secondary
#7CCEA1
accent
#E88B40
background
#FEF7FA
surface
#FCEEF4
border
#D5C9CE
text
#16090F
muted
#847B7F

Preview Lab

Preview with #C42A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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