#C042C9#C042C9

#C042C9 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.7% C 0.222 H 325.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#C042C9
RGBrgb(192, 66, 201)
HSLhsl(296, 56%, 52%)
HSVhsv(296, 67%, 79%)
CMYKcmyk(4.5%, 67.2%, 0%, 21.2%)
CIE-LABlab(51.06, 66.67, -45.73)
CIE-LCHlch(51.06, 80.84, 325.55°)
OKLaboklab(60.69% 0.1818 -0.127)
OKLCHoklch(60.69% 0.222 325.1)
XYZxyz(34.2283, 19.3221, 57.1737)
Luminance0.1932 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042C9 #4BC942
analogous
#7D42C9 #C042C9 #C9428F
triadic
#C042C9 #C9C042 #42C9C0
tetradic
#C042C9 #C97D42 #4BC942 #428FC9
square
#C042C9 #C97D42 #4BC942 #428FC9
split-complementary
#C042C9 #8FC942 #42C97D
monochromatic
#6B2070 #982EA0 #C042C9 #D072D7 #E0A1E4

Accessibility & contrast

On white

4.32
#C042C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#C042C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042C9
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042C9#FFFFFF#000000##000000
##C042C91.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2470CD
Deuteranopia (green-blind)
#5C7FC6
Tritanopia (blue-blind)
#C45780
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c042c9;
/* rgb */ color: rgb(192, 66, 201);
/* oklch */ color: oklch(60.7% 0.222 325.1);
Tailwind
colors: {
  custom: {
    50: '#d780da',
    500: '#c042c9',
    950: '#000000',
  },
}
SCSS
$custom: #c042c9;
$custom-light: #d780da;
$custom-dark: #000000;
JSON
{
  "hex": "#c042c9",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 201
  },
  "hsl": {
    "h": 296,
    "s": 55.556,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60689,
    "c": 0.22177,
    "h": 325.1
  },
  "luminance": 0.1932
}

Semantic roles & 50–950 ramp

primary
#C042C9
secondary
#9AD196
accent
#DF4953
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C042C9

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

Preview Lab → · Contrast checker → · Palette generator →

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