#C042A5#C042A5

#C042A5 is a mid, vivid pink. Relative luminance 0.178; OKLCH L 58.8% C 0.194 H 337.3°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#C042A5
RGBrgb(192, 66, 165)
HSLhsl(313, 50%, 51%)
HSVhsv(313, 66%, 75%)
CMYKcmyk(0%, 65.6%, 14.1%, 24.7%)
CIE-LABlab(49.28, 60.85, -27.55)
CIE-LCHlch(49.28, 66.80, 335.65°)
OKLaboklab(58.82% 0.179 -0.0747)
OKLCHoklch(58.82% 0.194 337.3)
XYZxyz(30.4785, 17.8222, 37.4248)
Luminance0.1782 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042A5 #42C05D
analogous
#9C42C0 #C042A5 #C04266
triadic
#C042A5 #A5C042 #42A5C0
tetradic
#C042A5 #C09C42 #42C05D #4266C0
square
#C042A5 #C09C42 #42C05D #4266C0
split-complementary
#C042A5 #66C042 #42C09C
monochromatic
#662257 #94317F #C042A5 #CF70BB #DF9ED1

Accessibility & contrast

On white

4.60
#C042A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#C042A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C042A5
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042A5#FFFFFF#000000##FFFFFF
##C042A51.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4669A8
Deuteranopia (green-blind)
#6E7CA2
Tritanopia (blue-blind)
#CA486E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c042a5;
/* rgb */ color: rgb(192, 66, 165);
/* oklch */ color: oklch(58.8% 0.194 337.3);
Tailwind
colors: {
  custom: {
    50: '#d67fc0',
    500: '#c042a5',
    950: '#000000',
  },
}
SCSS
$custom: #c042a5;
$custom-light: #d67fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#c042a5",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 312.857,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5882,
    "c": 0.19393,
    "h": 337.3
  },
  "luminance": 0.1782
}

Semantic roles & 50–950 ramp

primary
#C042A5
secondary
#93CB9F
accent
#DA6C4E
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C042A5

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

Preview Lab → · Contrast checker → · Palette generator →

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