#C042A6#C042A6

#C042A6 is a mid, vivid pink. Relative luminance 0.179; OKLCH L 58.9% C 0.195 H 337.0°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#C042A6
RGBrgb(192, 66, 166)
HSLhsl(312, 50%, 51%)
HSVhsv(312, 66%, 75%)
CMYKcmyk(0%, 65.6%, 13.5%, 24.7%)
CIE-LABlab(49.32, 61.00, -28.07)
CIE-LCHlch(49.32, 67.15, 335.29°)
OKLaboklab(58.87% 0.1791 -0.0762)
OKLCHoklch(58.87% 0.195 337)
XYZxyz(30.5698, 17.8587, 37.9060)
Luminance0.1786 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042A6 #42C05C
analogous
#9B42C0 #C042A6 #C04267
triadic
#C042A6 #A6C042 #42A6C0
tetradic
#C042A6 #C09B42 #42C05C #4267C0
square
#C042A6 #C09B42 #42C05C #4267C0
split-complementary
#C042A6 #67C042 #42C09B
monochromatic
#662258 #94317F #C042A6 #CF70BC #DF9ED1

Accessibility & contrast

On white

4.59
#C042A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#C042A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C042A6
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042A6#FFFFFF#000000##FFFFFF
##C042A61.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4569A9
Deuteranopia (green-blind)
#6D7CA3
Tritanopia (blue-blind)
#CA486E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c042a6;
/* rgb */ color: rgb(192, 66, 166);
/* oklch */ color: oklch(58.9% 0.195 337.0);
Tailwind
colors: {
  custom: {
    50: '#d67fc0',
    500: '#c042a6',
    950: '#000000',
  },
}
SCSS
$custom: #c042a6;
$custom-light: #d67fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#c042a6",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 166
  },
  "hsl": {
    "h": 312.381,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58867,
    "c": 0.19464,
    "h": 337
  },
  "luminance": 0.17856
}

Semantic roles & 50–950 ramp

primary
#C042A6
secondary
#93CB9E
accent
#DA6B4E
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C042A6

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

Preview Lab → · Contrast checker → · Palette generator →

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