#C042C1#C042C1

#C042C1 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.2% C 0.215 H 327.5°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#C042C1
RGBrgb(192, 66, 193)
HSLhsl(300, 51%, 51%)
HSVhsv(300, 66%, 76%)
CMYKcmyk(0.5%, 65.8%, 0%, 24.3%)
CIE-LABlab(50.63, 65.30, -41.79)
CIE-LCHlch(50.63, 77.53, 327.38°)
OKLaboklab(60.24% 0.1816 -0.1156)
OKLCHoklch(60.24% 0.215 327.5)
XYZxyz(33.3116, 18.9554, 52.3460)
Luminance0.1895 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042C1 #43C142
analogous
#8142C1 #C042C1 #C14282
triadic
#C042C1 #C1C042 #42C1C0
tetradic
#C042C1 #C18142 #43C142 #4282C1
square
#C042C1 #C18142 #43C142 #4282C1
split-complementary
#C042C1 #82C142 #42C181
monochromatic
#662267 #943195 #C042C1 #CF70D0 #DF9EDF

Accessibility & contrast

On white

4.38
#C042C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#C042C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042C1
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042C1#FFFFFF#000000##000000
##C042C11.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F6EC5
Deuteranopia (green-blind)
#617EBE
Tritanopia (blue-blind)
#C6547C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c042c1;
/* rgb */ color: rgb(192, 66, 193);
/* oklch */ color: oklch(60.2% 0.215 327.5);
Tailwind
colors: {
  custom: {
    50: '#d680d4',
    500: '#c042c1',
    950: '#000000',
  },
}
SCSS
$custom: #c042c1;
$custom-light: #d680d4;
$custom-dark: #000000;
JSON
{
  "hex": "#c042c1",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 299.528,
    "s": 50.598,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60243,
    "c": 0.21527,
    "h": 327.5
  },
  "luminance": 0.18953
}

Semantic roles & 50–950 ramp

primary
#C042C1
secondary
#94CC93
accent
#DA4E4F
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C042C1

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

Preview Lab → · Contrast checker → · Palette generator →

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