#C042A8#C042A8

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

Color values

HEX#C042A8
RGBrgb(192, 66, 168)
HSLhsl(311, 50%, 51%)
HSVhsv(311, 66%, 75%)
CMYKcmyk(0%, 65.6%, 12.5%, 24.7%)
CIE-LABlab(49.41, 61.30, -29.11)
CIE-LCHlch(49.41, 67.86, 334.60°)
OKLaboklab(58.96% 0.1794 -0.0791)
OKLCHoklch(58.96% 0.196 336.2)
XYZxyz(30.7547, 17.9327, 38.8798)
Luminance0.1793 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042A8 #42C05A
analogous
#9942C0 #C042A8 #C04269
triadic
#C042A8 #A8C042 #42A8C0
tetradic
#C042A8 #C09942 #42C05A #4269C0
square
#C042A8 #C09942 #42C05A #4269C0
split-complementary
#C042A8 #69C042 #42C099
monochromatic
#662259 #943181 #C042A8 #CF70BD #DF9ED2

Accessibility & contrast

On white

4.58
#C042A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##C042A8#FFFFFF#000000##000000
##C042A81.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4469AB
Deuteranopia (green-blind)
#6C7CA5
Tritanopia (blue-blind)
#CA496F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c042a8;
/* rgb */ color: rgb(192, 66, 168);
/* oklch */ color: oklch(59.0% 0.196 336.2);
Tailwind
colors: {
  custom: {
    50: '#d67fc2',
    500: '#c042a8',
    950: '#000000',
  },
}
SCSS
$custom: #c042a8;
$custom-light: #d67fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#c042a8",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 311.429,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58962,
    "c": 0.19608,
    "h": 336.2
  },
  "luminance": 0.1793
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C042A8

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

Preview Lab → · Contrast checker → · Palette generator →

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