#C042AB#C042AB

#C042AB is a mid, vivid pink. Relative luminance 0.180; OKLCH L 59.1% C 0.198 H 335.1°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#C042AB
RGBrgb(192, 66, 171)
HSLhsl(310, 50%, 51%)
HSVhsv(310, 66%, 75%)
CMYKcmyk(0%, 65.6%, 10.9%, 24.7%)
CIE-LABlab(49.55, 61.76, -30.66)
CIE-LCHlch(49.55, 68.95, 333.60°)
OKLaboklab(59.11% 0.1798 -0.0835)
OKLCHoklch(59.11% 0.198 335.1)
XYZxyz(31.0374, 18.0457, 40.3687)
Luminance0.1804 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042AB #42C057
analogous
#9642C0 #C042AB #C0426C
triadic
#C042AB #ABC042 #42ABC0
tetradic
#C042AB #C09642 #42C057 #426CC0
square
#C042AB #C09642 #42C057 #426CC0
split-complementary
#C042AB #6CC042 #42C096
monochromatic
#66225A #943183 #C042AB #CF70BF #DF9ED4

Accessibility & contrast

On white

4.56
#C042AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#C042AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042AB
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042AB#FFFFFF#000000##000000
##C042AB1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#426AAE
Deuteranopia (green-blind)
#6B7DA8
Tritanopia (blue-blind)
#C94B71
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c042ab;
/* rgb */ color: rgb(192, 66, 171);
/* oklch */ color: oklch(59.1% 0.198 335.1);
Tailwind
colors: {
  custom: {
    50: '#d680c4',
    500: '#c042ab',
    950: '#000000',
  },
}
SCSS
$custom: #c042ab;
$custom-light: #d680c4;
$custom-dark: #000000;
JSON
{
  "hex": "#c042ab",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 310,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59106,
    "c": 0.19826,
    "h": 335.1
  },
  "luminance": 0.18043
}

Semantic roles & 50–950 ramp

primary
#C042AB
secondary
#93CB9C
accent
#DA654E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B12
muted
#837C81

Preview Lab

Preview with #C042AB

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

Preview Lab → · Contrast checker → · Palette generator →

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