#C42E9F#C42E9F

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

Color values

HEX#C42E9F
RGBrgb(196, 46, 159)
HSLhsl(315, 62%, 47%)
HSVhsv(315, 77%, 77%)
CMYKcmyk(0%, 76.5%, 18.9%, 23.1%)
CIE-LABlab(47.23, 67.89, -27.12)
CIE-LCHlch(47.23, 73.11, 338.23°)
OKLaboklab(57.37% 0.2028 -0.0732)
OKLCHoklch(57.37% 0.216 340.1)
XYZxyz(30.0008, 16.1960, 34.3403)
Luminance0.1619 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42E9F #2EC453
analogous
#9E2EC4 #C42E9F #C42E54
triadic
#C42E9F #9FC42E #2E9FC4
tetradic
#C42E9F #C49E2E #2EC453 #2E54C4
square
#C42E9F #C49E2E #2EC453 #2E54C4
split-complementary
#C42E9F #54C42E #2EC49E
monochromatic
#61174F #922277 #C42E9F #D858B8 #E389CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C42E9F#FFFFFF#000000##FFFFFF
##C42E9F1.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)
#3A61A2
Deuteranopia (green-blind)
#6B789C
Tritanopia (blue-blind)
#D03364
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c42e9f;
/* rgb */ color: rgb(196, 46, 159);
/* oklch */ color: oklch(57.4% 0.216 340.1);
Tailwind
colors: {
  custom: {
    50: '#da77bb',
    500: '#c42e9f',
    950: '#000000',
  },
}
SCSS
$custom: #c42e9f;
$custom-light: #da77bb;
$custom-dark: #000000;
JSON
{
  "hex": "#c42e9f",
  "rgb": {
    "r": 196,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 314.8,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57372,
    "c": 0.2156,
    "h": 340.1
  },
  "luminance": 0.16193
}

Semantic roles & 50–950 ramp

primary
#C42E9F
secondary
#81CD94
accent
#E56B43
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C42E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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