#C42F97#C42F97

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

Color values

HEX#C42F97
RGBrgb(196, 47, 151)
HSLhsl(318, 61%, 48%)
HSVhsv(318, 76%, 77%)
CMYKcmyk(0%, 76%, 23%, 23.1%)
CIE-LABlab(46.98, 66.55, -22.72)
CIE-LCHlch(46.98, 70.32, 341.15°)
OKLaboklab(57.08% 0.2007 -0.0608)
OKLCHoklch(57.08% 0.21 343.1)
XYZxyz(29.3685, 16.0063, 30.8150)
Luminance0.1600 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42F97 #2FC45C
analogous
#A72FC4 #C42F97 #C42F4C
triadic
#C42F97 #97C42F #2F97C4
tetradic
#C42F97 #C4A72F #2FC45C #2F4CC4
square
#C42F97 #C4A72F #2FC45C #2F4CC4
split-complementary
#C42F97 #4CC42F #2FC4A7
monochromatic
#61174B #932371 #C42F97 #D759B1 #E38AC8

Accessibility & contrast

On white

5.00
#C42F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#C42F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42F97
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42F97#FFFFFF#000000##FFFFFF
##C42F971.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40609A
Deuteranopia (green-blind)
#6E7894
Tritanopia (blue-blind)
#D12F60
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c42f97;
/* rgb */ color: rgb(196, 47, 151);
/* oklch */ color: oklch(57.1% 0.210 343.1);
Tailwind
colors: {
  custom: {
    50: '#da77b5',
    500: '#c42f97',
    950: '#000000',
  },
}
SCSS
$custom: #c42f97;
$custom-light: #da77b5;
$custom-dark: #000000;
JSON
{
  "hex": "#c42f97",
  "rgb": {
    "r": 196,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 318.121,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57079,
    "c": 0.20971,
    "h": 343.1
  },
  "luminance": 0.16003
}

Semantic roles & 50–950 ramp

primary
#C42F97
secondary
#82CD99
accent
#E47443
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #C42F97

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

Preview Lab → · Contrast checker → · Palette generator →

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