#C42F9D#C42F9D

#C42F9D is a mid, highly saturated pink. Relative luminance 0.162; OKLCH L 57.4% C 0.213 H 340.9°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#C42F9D
RGBrgb(196, 47, 157)
HSLhsl(316, 61%, 48%)
HSVhsv(316, 76%, 77%)
CMYKcmyk(0%, 76%, 19.9%, 23.1%)
CIE-LABlab(47.24, 67.33, -25.91)
CIE-LCHlch(47.24, 72.14, 338.96°)
OKLaboklab(57.35% 0.2016 -0.0698)
OKLCHoklch(57.35% 0.213 340.9)
XYZxyz(29.8682, 16.2062, 33.4469)
Luminance0.1620 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42F9D #2FC456
analogous
#A12FC4 #C42F9D #C42F52
triadic
#C42F9D #9DC42F #2F9DC4
tetradic
#C42F9D #C4A12F #2FC456 #2F52C4
square
#C42F9D #C4A12F #2FC456 #2F52C4
split-complementary
#C42F9D #52C42F #2FC4A1
monochromatic
#61174E #932375 #C42F9D #D759B6 #E38ACC

Accessibility & contrast

On white

4.95
#C42F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#C42F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42F9D
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42F9D#FFFFFF#000000##FFFFFF
##C42F9D1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C61A0
Deuteranopia (green-blind)
#6C799A
Tritanopia (blue-blind)
#D03363
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c42f9d;
/* rgb */ color: rgb(196, 47, 157);
/* oklch */ color: oklch(57.4% 0.213 340.9);
Tailwind
colors: {
  custom: {
    50: '#da77ba',
    500: '#c42f9d',
    950: '#000000',
  },
}
SCSS
$custom: #c42f9d;
$custom-light: #da77ba;
$custom-dark: #000000;
JSON
{
  "hex": "#c42f9d",
  "rgb": {
    "r": 196,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 315.705,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57353,
    "c": 0.21336,
    "h": 340.9
  },
  "luminance": 0.16203
}

Semantic roles & 50–950 ramp

primary
#C42F9D
secondary
#82CD95
accent
#E46E43
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #C42F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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