#C42E9D#C42E9D

#C42E9D is a mid, highly saturated pink. Relative luminance 0.161; OKLCH L 57.3% C 0.214 H 340.9°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#C42E9D
RGBrgb(196, 46, 157)
HSLhsl(316, 62%, 47%)
HSVhsv(316, 77%, 77%)
CMYKcmyk(0%, 76.5%, 19.9%, 23.1%)
CIE-LABlab(47.14, 67.62, -26.07)
CIE-LCHlch(47.14, 72.47, 338.92°)
OKLaboklab(57.28% 0.2025 -0.0703)
OKLCHoklch(57.28% 0.214 340.9)
XYZxyz(29.8287, 16.1271, 33.4337)
Luminance0.1612 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42E9D #2EC455
analogous
#A02EC4 #C42E9D #C42E52
triadic
#C42E9D #9DC42E #2E9DC4
tetradic
#C42E9D #C4A02E #2EC455 #2E52C4
square
#C42E9D #C4A02E #2EC455 #2E52C4
split-complementary
#C42E9D #52C42E #2EC4A0
monochromatic
#61174E #922275 #C42E9D #D858B6 #E389CC

Accessibility & contrast

On white

4.97
#C42E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#C42E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42E9D
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42E9D#FFFFFF#000000##FFFFFF
##C42E9D1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B60A0
Deuteranopia (green-blind)
#6C789A
Tritanopia (blue-blind)
#D03263
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c42e9d;
/* rgb */ color: rgb(196, 46, 157);
/* oklch */ color: oklch(57.3% 0.214 340.9);
Tailwind
colors: {
  custom: {
    50: '#da77ba',
    500: '#c42e9d',
    950: '#000000',
  },
}
SCSS
$custom: #c42e9d;
$custom-light: #da77ba;
$custom-dark: #000000;
JSON
{
  "hex": "#c42e9d",
  "rgb": {
    "r": 196,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 315.6,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57278,
    "c": 0.21436,
    "h": 340.9
  },
  "luminance": 0.16124
}

Semantic roles & 50–950 ramp

primary
#C42E9D
secondary
#81CD95
accent
#E56D43
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #C42E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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