#C042A4#C042A4

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

Color values

HEX#C042A4
RGBrgb(192, 66, 164)
HSLhsl(313, 50%, 51%)
HSVhsv(313, 66%, 75%)
CMYKcmyk(0%, 65.6%, 14.6%, 24.7%)
CIE-LABlab(49.24, 60.71, -27.02)
CIE-LCHlch(49.24, 66.45, 336.00°)
OKLaboklab(58.77% 0.1788 -0.0732)
OKLCHoklch(58.77% 0.193 337.7)
XYZxyz(30.3878, 17.7859, 36.9473)
Luminance0.1778 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042A4 #42C05E
analogous
#9D42C0 #C042A4 #C04265
triadic
#C042A4 #A4C042 #42A4C0
tetradic
#C042A4 #C09D42 #42C05E #4265C0
square
#C042A4 #C09D42 #42C05E #4265C0
split-complementary
#C042A4 #65C042 #42C09D
monochromatic
#662257 #94317E #C042A4 #CF70BA #DF9ED0

Accessibility & contrast

On white

4.61
#C042A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C042A4
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042A4#FFFFFF#000000##FFFFFF
##C042A41.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4669A7
Deuteranopia (green-blind)
#6E7CA1
Tritanopia (blue-blind)
#CA486D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c042a4;
/* rgb */ color: rgb(192, 66, 164);
/* oklch */ color: oklch(58.8% 0.193 337.7);
Tailwind
colors: {
  custom: {
    50: '#d67fbf',
    500: '#c042a4',
    950: '#000000',
  },
}
SCSS
$custom: #c042a4;
$custom-light: #d67fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#c042a4",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 313.333,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58773,
    "c": 0.19322,
    "h": 337.7
  },
  "luminance": 0.17783
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C042A4

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

Preview Lab → · Contrast checker → · Palette generator →

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