#C42EA2#C42EA2

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

Color values

HEX#C42EA2
RGBrgb(196, 46, 162)
HSLhsl(314, 62%, 47%)
HSVhsv(314, 77%, 77%)
CMYKcmyk(0%, 76.5%, 17.3%, 23.1%)
CIE-LABlab(47.37, 68.29, -28.69)
CIE-LCHlch(47.37, 74.08, 337.21°)
OKLaboklab(57.52% 0.2031 -0.0777)
OKLCHoklch(57.52% 0.218 339.1)
XYZxyz(30.2643, 16.3014, 35.7280)
Luminance0.1630 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42EA2 #2EC450
analogous
#9B2EC4 #C42EA2 #C42E57
triadic
#C42EA2 #A2C42E #2EA2C4
tetradic
#C42EA2 #C49B2E #2EC450 #2E57C4
square
#C42EA2 #C49B2E #2EC450 #2E57C4
split-complementary
#C42EA2 #57C42E #2EC49B
monochromatic
#611750 #922279 #C42EA2 #D858BB #E389CF

Accessibility & contrast

On white

4.93
#C42EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#C42EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42EA2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42EA2#FFFFFF#000000##FFFFFF
##C42EA21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A5
Deuteranopia (green-blind)
#6A799F
Tritanopia (blue-blind)
#CF3565
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c42ea2;
/* rgb */ color: rgb(196, 46, 162);
/* oklch */ color: oklch(57.5% 0.217 339.1);
Tailwind
colors: {
  custom: {
    50: '#da77be',
    500: '#c42ea2',
    950: '#000000',
  },
}
SCSS
$custom: #c42ea2;
$custom-light: #da77be;
$custom-dark: #000000;
JSON
{
  "hex": "#c42ea2",
  "rgb": {
    "r": 196,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 313.6,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57516,
    "c": 0.2175,
    "h": 339.1
  },
  "luminance": 0.16298
}

Semantic roles & 50–950 ramp

primary
#C42EA2
secondary
#81CD92
accent
#E56843
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C42EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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