#C042A2#C042A2

#C042A2 is a mid, vivid pink. Relative luminance 0.177; OKLCH L 58.7% C 0.192 H 338.5°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#C042A2
RGBrgb(192, 66, 162)
HSLhsl(314, 50%, 51%)
HSVhsv(314, 66%, 75%)
CMYKcmyk(0%, 65.6%, 15.6%, 24.7%)
CIE-LABlab(49.15, 60.41, -25.98)
CIE-LCHlch(49.15, 65.76, 336.73°)
OKLaboklab(58.68% 0.1785 -0.0702)
OKLCHoklch(58.68% 0.192 338.5)
XYZxyz(30.2086, 17.7142, 36.0036)
Luminance0.1771 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042A2 #42C060
analogous
#9F42C0 #C042A2 #C04263
triadic
#C042A2 #A2C042 #42A2C0
tetradic
#C042A2 #C09F42 #42C060 #4263C0
square
#C042A2 #C09F42 #42C060 #4263C0
split-complementary
#C042A2 #63C042 #42C09F
monochromatic
#662256 #94317C #C042A2 #CF70B9 #DF9ECF

Accessibility & contrast

On white

4.62
#C042A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#C042A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C042A2
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042A2#FFFFFF#000000##FFFFFF
##C042A21.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4768A5
Deuteranopia (green-blind)
#6F7C9F
Tritanopia (blue-blind)
#CA476C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c042a2;
/* rgb */ color: rgb(192, 66, 162);
/* oklch */ color: oklch(58.7% 0.192 338.5);
Tailwind
colors: {
  custom: {
    50: '#d67fbd',
    500: '#c042a2',
    950: '#000000',
  },
}
SCSS
$custom: #c042a2;
$custom-light: #d67fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#c042a2",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 314.286,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5868,
    "c": 0.19182,
    "h": 338.5
  },
  "luminance": 0.17712
}

Semantic roles & 50–950 ramp

primary
#C042A2
secondary
#93CBA0
accent
#DA6F4E
background
#FDF8FB
surface
#FBEFF6
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C042A2

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

Preview Lab → · Contrast checker → · Palette generator →

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