#C42D98#C42D98

#C42D98 is a mid, highly saturated pink. Relative luminance 0.159; OKLCH L 57.0% C 0.212 H 342.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#C42D98
RGBrgb(196, 45, 152)
HSLhsl(317, 63%, 47%)
HSVhsv(317, 77%, 77%)
CMYKcmyk(0%, 77%, 22.4%, 23.1%)
CIE-LABlab(46.82, 67.26, -23.57)
CIE-LCHlch(46.82, 71.27, 340.69°)
OKLaboklab(56.97% 0.2027 -0.0632)
OKLCHoklch(56.97% 0.212 342.7)
XYZxyz(29.3719, 15.8826, 31.2185)
Luminance0.1588 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42D98 #2DC459
analogous
#A42DC4 #C42D98 #C42D4D
triadic
#C42D98 #98C42D #2D98C4
tetradic
#C42D98 #C4A42D #2DC459 #2D4DC4
square
#C42D98 #C4A42D #2DC459 #2D4DC4
split-complementary
#C42D98 #4DC42D #2DC4A4
monochromatic
#60164B #922271 #C42D98 #D856B2 #E488C9

Accessibility & contrast

On white

5.03
#C42D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#C42D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42D98
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42D98#FFFFFF#000000##FFFFFF
##C42D981.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5F9B
Deuteranopia (green-blind)
#6D7895
Tritanopia (blue-blind)
#D12E60
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c42d98;
/* rgb */ color: rgb(196, 45, 152);
/* oklch */ color: oklch(57.0% 0.212 342.7);
Tailwind
colors: {
  custom: {
    50: '#da76b6',
    500: '#c42d98',
    950: '#000000',
  },
}
SCSS
$custom: #c42d98;
$custom-light: #da76b6;
$custom-dark: #000000;
JSON
{
  "hex": "#c42d98",
  "rgb": {
    "r": 196,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 317.483,
    "s": 62.656,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56975,
    "c": 0.21228,
    "h": 342.7
  },
  "luminance": 0.1588
}

Semantic roles & 50–950 ramp

primary
#C42D98
secondary
#80CD96
accent
#E67242
background
#FEF7FB
surface
#FCEEF6
border
#D5C9D0
text
#150A11
muted
#847C80

Preview Lab

Preview with #C42D98

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

Preview Lab → · Contrast checker → · Palette generator →

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