#C42FA1#C42FA1

#C42FA1 is a mid, highly saturated pink. Relative luminance 0.163; OKLCH L 57.5% C 0.216 H 339.4°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#C42FA1
RGBrgb(196, 47, 161)
HSLhsl(314, 61%, 48%)
HSVhsv(314, 76%, 77%)
CMYKcmyk(0%, 76%, 17.9%, 23.1%)
CIE-LABlab(47.42, 67.87, -28.01)
CIE-LCHlch(47.42, 73.42, 337.57°)
OKLaboklab(57.54% 0.2021 -0.0758)
OKLCHoklch(57.54% 0.216 339.4)
XYZxyz(30.2153, 16.3450, 35.2749)
Luminance0.1634 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42FA1 #2FC452
analogous
#9C2FC4 #C42FA1 #C42F56
triadic
#C42FA1 #A1C42F #2FA1C4
tetradic
#C42FA1 #C49C2F #2FC452 #2F56C4
square
#C42FA1 #C49C2F #2FC452 #2F56C4
split-complementary
#C42FA1 #56C42F #2FC49C
monochromatic
#611750 #932378 #C42FA1 #D759BA #E38ACE

Accessibility & contrast

On white

4.92
#C42FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#C42FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42FA1
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42FA1#FFFFFF#000000##FFFFFF
##C42FA11.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3962A4
Deuteranopia (green-blind)
#6B799E
Tritanopia (blue-blind)
#CF3565
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c42fa1;
/* rgb */ color: rgb(196, 47, 161);
/* oklch */ color: oklch(57.5% 0.216 339.4);
Tailwind
colors: {
  custom: {
    50: '#da77bd',
    500: '#c42fa1',
    950: '#000000',
  },
}
SCSS
$custom: #c42fa1;
$custom-light: #da77bd;
$custom-dark: #000000;
JSON
{
  "hex": "#c42fa1",
  "rgb": {
    "r": 196,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 314.094,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57542,
    "c": 0.21588,
    "h": 339.4
  },
  "luminance": 0.16342
}

Semantic roles & 50–950 ramp

primary
#C42FA1
secondary
#82CD93
accent
#E46943
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C42FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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