#C042AC#C042AC

#C042AC is a mid, vivid purple. Relative luminance 0.181; OKLCH L 59.2% C 0.199 H 334.7°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#C042AC
RGBrgb(192, 66, 172)
HSLhsl(310, 50%, 51%)
HSVhsv(310, 66%, 75%)
CMYKcmyk(0%, 65.6%, 10.4%, 24.7%)
CIE-LABlab(49.60, 61.92, -31.17)
CIE-LCHlch(49.60, 69.32, 333.28°)
OKLaboklab(59.16% 0.1799 -0.085)
OKLCHoklch(59.16% 0.199 334.7)
XYZxyz(31.1331, 18.0840, 40.8726)
Luminance0.1808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042AC #42C056
analogous
#9542C0 #C042AC #C0426D
triadic
#C042AC #ACC042 #42ACC0
tetradic
#C042AC #C09542 #42C056 #426DC0
square
#C042AC #C09542 #42C056 #426DC0
split-complementary
#C042AC #6DC042 #42C095
monochromatic
#66225B #943184 #C042AC #CF70C0 #DF9ED4

Accessibility & contrast

On white

4.55
#C042AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#C042AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042AC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042AC#FFFFFF#000000##000000
##C042AC1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#416AAF
Deuteranopia (green-blind)
#6B7DA9
Tritanopia (blue-blind)
#C94B71
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c042ac;
/* rgb */ color: rgb(192, 66, 172);
/* oklch */ color: oklch(59.2% 0.199 334.7);
Tailwind
colors: {
  custom: {
    50: '#d680c5',
    500: '#c042ac',
    950: '#000000',
  },
}
SCSS
$custom: #c042ac;
$custom-light: #d680c5;
$custom-dark: #000000;
JSON
{
  "hex": "#c042ac",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 309.524,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59155,
    "c": 0.19901,
    "h": 334.7
  },
  "luminance": 0.18081
}

Semantic roles & 50–950 ramp

primary
#C042AC
secondary
#93CB9C
accent
#DA644E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C042AC

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

Preview Lab → · Contrast checker → · Palette generator →

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