#C42D9D#C42D9D

#C42D9D is a mid, highly saturated pink. Relative luminance 0.160; OKLCH L 57.2% C 0.215 H 340.8°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#C42D9D
RGBrgb(196, 45, 157)
HSLhsl(315, 63%, 47%)
HSVhsv(315, 77%, 77%)
CMYKcmyk(0%, 77%, 19.9%, 23.1%)
CIE-LABlab(47.04, 67.91, -26.22)
CIE-LCHlch(47.04, 72.80, 338.89°)
OKLaboklab(57.21% 0.2034 -0.0707)
OKLCHoklch(57.21% 0.215 340.8)
XYZxyz(29.7901, 16.0499, 33.4208)
Luminance0.1605 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42D9D #2DC454
analogous
#A02DC4 #C42D9D #C42D51
triadic
#C42D9D #9DC42D #2D9DC4
tetradic
#C42D9D #C4A02D #2DC454 #2D51C4
square
#C42D9D #C4A02D #2DC454 #2D51C4
split-complementary
#C42D9D #51C42D #2DC4A0
monochromatic
#60164D #922275 #C42D9D #D856B7 #E488CC

Accessibility & contrast

On white

4.99
#C42D9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#C42D9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42D9D
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42D9D#FFFFFF#000000##FFFFFF
##C42D9D1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A60A0
Deuteranopia (green-blind)
#6B789A
Tritanopia (blue-blind)
#D03162
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c42d9d;
/* rgb */ color: rgb(196, 45, 157);
/* oklch */ color: oklch(57.2% 0.215 340.8);
Tailwind
colors: {
  custom: {
    50: '#da76ba',
    500: '#c42d9d',
    950: '#000000',
  },
}
SCSS
$custom: #c42d9d;
$custom-light: #da76ba;
$custom-dark: #000000;
JSON
{
  "hex": "#c42d9d",
  "rgb": {
    "r": 196,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 315.497,
    "s": 62.656,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57205,
    "c": 0.21533,
    "h": 340.8
  },
  "luminance": 0.16047
}

Semantic roles & 50–950 ramp

primary
#C42D9D
secondary
#80CD94
accent
#E66C42
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #C42D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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