#C42A7E#C42A7E

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

Color values

HEX#C42A7E
RGBrgb(196, 42, 126)
HSLhsl(327, 65%, 47%)
HSVhsv(327, 79%, 77%)
CMYKcmyk(0%, 78.6%, 35.7%, 23.1%)
CIE-LABlab(45.50, 65.06, -9.83)
CIE-LCHlch(45.50, 65.80, 351.41°)
OKLaboklab(55.68% 0.1998 -0.0253)
OKLCHoklch(55.68% 0.201 352.8)
XYZxyz(27.3606, 14.9014, 21.1701)
Luminance0.1490 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42A7E #2AC470
analogous
#BD2AC4 #C42A7E #C42A31
triadic
#C42A7E #7EC42A #2A7EC4
tetradic
#C42A7E #C4BD2A #2AC470 #2A31C4
square
#C42A7E #C4BD2A #2AC470 #2A31C4
split-complementary
#C42A7E #31C42A #2AC4BD
monochromatic
#5F143D #921F5E #C42A7E #DA519C #E584B9

Accessibility & contrast

On white

5.28
#C42A7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C42A7E
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42A7E#FFFFFF#000000##FFFFFF
##C42A7E1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c42a7e;
/* rgb */ color: rgb(196, 42, 126);
/* oklch */ color: oklch(55.7% 0.201 352.8);
Tailwind
colors: {
  custom: {
    50: '#db74a3',
    500: '#c42a7e',
    950: '#000000',
  },
}
SCSS
$custom: #c42a7e;
$custom-light: #db74a3;
$custom-dark: #000000;
JSON
{
  "hex": "#c42a7e",
  "rgb": {
    "r": 196,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 327.273,
    "s": 64.706,
    "l": 46.667
  },
  "oklch": {
    "l": 0.55681,
    "c": 0.20139,
    "h": 352.8
  },
  "luminance": 0.14898
}

Semantic roles & 50–950 ramp

primary
#C42A7E
secondary
#7CCEA1
accent
#E88C40
background
#FEF7FA
surface
#FCEEF3
border
#D5C9CD
text
#16090F
muted
#847B7F

Preview Lab

Preview with #C42A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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