#C42F98#C42F98

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

Color values

HEX#C42F98
RGBrgb(196, 47, 152)
HSLhsl(318, 61%, 48%)
HSVhsv(318, 76%, 77%)
CMYKcmyk(0%, 76%, 22.4%, 23.1%)
CIE-LABlab(47.03, 66.68, -23.25)
CIE-LCHlch(47.03, 70.62, 340.77°)
OKLaboklab(57.12% 0.2009 -0.0623)
OKLCHoklch(57.12% 0.21 342.8)
XYZxyz(29.4500, 16.0389, 31.2445)
Luminance0.1604 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42F98 #2FC45B
analogous
#A52FC4 #C42F98 #C42F4E
triadic
#C42F98 #98C42F #2F98C4
tetradic
#C42F98 #C4A52F #2FC45B #2F4EC4
square
#C42F98 #C4A52F #2FC45B #2F4EC4
split-complementary
#C42F98 #4EC42F #2FC4A5
monochromatic
#61174B #932372 #C42F98 #D759B2 #E38AC9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C42F98#FFFFFF#000000##FFFFFF
##C42F981.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)
#3F609B
Deuteranopia (green-blind)
#6E7895
Tritanopia (blue-blind)
#D13060
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c42f98;
/* rgb */ color: rgb(196, 47, 152);
/* oklch */ color: oklch(57.1% 0.210 342.8);
Tailwind
colors: {
  custom: {
    50: '#da77b6',
    500: '#c42f98',
    950: '#000000',
  },
}
SCSS
$custom: #c42f98;
$custom-light: #da77b6;
$custom-dark: #000000;
JSON
{
  "hex": "#c42f98",
  "rgb": {
    "r": 196,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 317.718,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57124,
    "c": 0.2103,
    "h": 342.8
  },
  "luminance": 0.16036
}

Semantic roles & 50–950 ramp

primary
#C42F98
secondary
#82CD98
accent
#E47343
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #C42F98

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

Preview Lab → · Contrast checker → · Palette generator →

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