#C42E98#C42E98

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

Color values

HEX#C42E98
RGBrgb(196, 46, 152)
HSLhsl(318, 62%, 47%)
HSVhsv(318, 77%, 77%)
CMYKcmyk(0%, 76.5%, 22.4%, 23.1%)
CIE-LABlab(46.92, 66.97, -23.41)
CIE-LCHlch(46.92, 70.95, 340.73°)
OKLaboklab(57.05% 0.2018 -0.0628)
OKLCHoklch(57.05% 0.211 342.7)
XYZxyz(29.4105, 15.9599, 31.2314)
Luminance0.1596 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42E98 #2EC45A
analogous
#A52EC4 #C42E98 #C42E4D
triadic
#C42E98 #98C42E #2E98C4
tetradic
#C42E98 #C4A52E #2EC45A #2E4DC4
square
#C42E98 #C4A52E #2EC45A #2E4DC4
split-complementary
#C42E98 #4DC42E #2EC4A5
monochromatic
#61174B #922272 #C42E98 #D858B2 #E389C9

Accessibility & contrast

On white

5.01
#C42E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#C42E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42E98
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42E98#FFFFFF#000000##FFFFFF
##C42E981.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E609B
Deuteranopia (green-blind)
#6E7895
Tritanopia (blue-blind)
#D12F60
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c42e98;
/* rgb */ color: rgb(196, 46, 152);
/* oklch */ color: oklch(57.0% 0.211 342.7);
Tailwind
colors: {
  custom: {
    50: '#da76b6',
    500: '#c42e98',
    950: '#000000',
  },
}
SCSS
$custom: #c42e98;
$custom-light: #da76b6;
$custom-dark: #000000;
JSON
{
  "hex": "#c42e98",
  "rgb": {
    "r": 196,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 317.6,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57049,
    "c": 0.2113,
    "h": 342.7
  },
  "luminance": 0.15957
}

Semantic roles & 50–950 ramp

primary
#C42E98
secondary
#81CD97
accent
#E57243
background
#FEF7FB
surface
#FCEEF6
border
#D5C9D0
text
#150A11
muted
#847C80

Preview Lab

Preview with #C42E98

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

Preview Lab → · Contrast checker → · Palette generator →

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