#C042AF#C042AF

#C042AF is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.3% C 0.201 H 333.6°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#C042AF
RGBrgb(192, 66, 175)
HSLhsl(308, 50%, 51%)
HSVhsv(308, 66%, 75%)
CMYKcmyk(0%, 65.6%, 8.9%, 24.7%)
CIE-LABlab(49.74, 62.38, -32.71)
CIE-LCHlch(49.74, 70.44, 332.33°)
OKLaboklab(59.3% 0.1803 -0.0894)
OKLCHoklch(59.3% 0.201 333.6)
XYZxyz(31.4245, 18.2006, 42.4071)
Luminance0.1820 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042AF #42C053
analogous
#9242C0 #C042AF #C04270
triadic
#C042AF #AFC042 #42AFC0
tetradic
#C042AF #C09242 #42C053 #4270C0
square
#C042AF #C09242 #42C053 #4270C0
split-complementary
#C042AF #70C042 #42C092
monochromatic
#66225D #943186 #C042AF #CF70C2 #DF9ED6

Accessibility & contrast

On white

4.53
#C042AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#C042AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042AF
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042AF#FFFFFF#000000##000000
##C042AF1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F6BB2
Deuteranopia (green-blind)
#6A7DAC
Tritanopia (blue-blind)
#C94C73
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c042af;
/* rgb */ color: rgb(192, 66, 175);
/* oklch */ color: oklch(59.3% 0.201 333.6);
Tailwind
colors: {
  custom: {
    50: '#d680c7',
    500: '#c042af',
    950: '#000000',
  },
}
SCSS
$custom: #c042af;
$custom-light: #d680c7;
$custom-dark: #000000;
JSON
{
  "hex": "#c042af",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 308.095,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59303,
    "c": 0.20125,
    "h": 333.6
  },
  "luminance": 0.18198
}

Semantic roles & 50–950 ramp

primary
#C042AF
secondary
#93CB9A
accent
#DA614E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C042AF

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

Preview Lab → · Contrast checker → · Palette generator →

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