#C042C5#C042C5

#C042C5 is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.5% C 0.219 H 326.3°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#C042C5
RGBrgb(192, 66, 197)
HSLhsl(298, 53%, 52%)
HSVhsv(298, 66%, 77%)
CMYKcmyk(2.5%, 66.5%, 0%, 22.7%)
CIE-LABlab(50.85, 65.98, -43.77)
CIE-LCHlch(50.85, 79.18, 326.44°)
OKLaboklab(60.46% 0.1817 -0.1213)
OKLCHoklch(60.46% 0.219 326.3)
XYZxyz(33.7638, 19.1363, 54.7278)
Luminance0.1913 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042C5 #47C542
analogous
#7F42C5 #C042C5 #C54289
triadic
#C042C5 #C5C042 #42C5C0
tetradic
#C042C5 #C57F42 #47C542 #4289C5
square
#C042C5 #C57F42 #47C542 #4289C5
split-complementary
#C042C5 #89C542 #42C57F
monochromatic
#69216C #962F9A #C042C5 #D071D3 #DFA0E2

Accessibility & contrast

On white

4.35
#C042C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#C042C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042C5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042C5#FFFFFF#000000##000000
##C042C51.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A6FC9
Deuteranopia (green-blind)
#5F7FC2
Tritanopia (blue-blind)
#C5557E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c042c5;
/* rgb */ color: rgb(192, 66, 197);
/* oklch */ color: oklch(60.5% 0.219 326.3);
Tailwind
colors: {
  custom: {
    50: '#d680d7',
    500: '#c042c5',
    950: '#000000',
  },
}
SCSS
$custom: #c042c5;
$custom-light: #d680d7;
$custom-dark: #000000;
JSON
{
  "hex": "#c042c5",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 297.71,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.60464,
    "c": 0.21851,
    "h": 326.3
  },
  "luminance": 0.19134
}

Semantic roles & 50–950 ramp

primary
#C042C5
secondary
#97CE95
accent
#DC4B51
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C042C5

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

Preview Lab → · Contrast checker → · Palette generator →

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