#C042A9#C042A9

#C042A9 is a mid, vivid pink. Relative luminance 0.180; OKLCH L 59.0% C 0.197 H 335.8°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#C042A9
RGBrgb(192, 66, 169)
HSLhsl(311, 50%, 51%)
HSVhsv(311, 66%, 75%)
CMYKcmyk(0%, 65.6%, 12%, 24.7%)
CIE-LABlab(49.46, 61.46, -29.62)
CIE-LCHlch(49.46, 68.22, 334.26°)
OKLaboklab(59.01% 0.1795 -0.0806)
OKLCHoklch(59.01% 0.197 335.8)
XYZxyz(30.8482, 17.9701, 39.3723)
Luminance0.1797 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042A9 #42C059
analogous
#9842C0 #C042A9 #C0426A
triadic
#C042A9 #A9C042 #42A9C0
tetradic
#C042A9 #C09842 #42C059 #426AC0
square
#C042A9 #C09842 #42C059 #426AC0
split-complementary
#C042A9 #6AC042 #42C098
monochromatic
#662259 #943182 #C042A9 #CF70BE #DF9ED3

Accessibility & contrast

On white

4.57
#C042A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#C042A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042A9
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042A9#FFFFFF#000000##000000
##C042A91.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4369AC
Deuteranopia (green-blind)
#6C7CA6
Tritanopia (blue-blind)
#C94A70
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c042a9;
/* rgb */ color: rgb(192, 66, 169);
/* oklch */ color: oklch(59.0% 0.197 335.8);
Tailwind
colors: {
  custom: {
    50: '#d67fc3',
    500: '#c042a9',
    950: '#000000',
  },
}
SCSS
$custom: #c042a9;
$custom-light: #d67fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#c042a9",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 169
  },
  "hsl": {
    "h": 310.952,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5901,
    "c": 0.1968,
    "h": 335.8
  },
  "luminance": 0.17967
}

Semantic roles & 50–950 ramp

primary
#C042A9
secondary
#93CB9D
accent
#DA684E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B12
muted
#837C81

Preview Lab

Preview with #C042A9

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

Preview Lab → · Contrast checker → · Palette generator →

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