#C042C7#C042C7

#C042C7 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.6% C 0.220 H 325.7°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#C042C7
RGBrgb(192, 66, 199)
HSLhsl(297, 54%, 52%)
HSVhsv(297, 67%, 78%)
CMYKcmyk(3.5%, 66.8%, 0%, 22%)
CIE-LABlab(50.95, 66.32, -44.75)
CIE-LCHlch(50.95, 80.01, 325.99°)
OKLaboklab(60.58% 0.1818 -0.1242)
OKLCHoklch(60.58% 0.22 325.7)
XYZxyz(33.9945, 19.2286, 55.9427)
Luminance0.1923 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042C7 #49C742
analogous
#7E42C7 #C042C7 #C7428C
triadic
#C042C7 #C7C042 #42C7C0
tetradic
#C042C7 #C77E42 #49C742 #428CC7
square
#C042C7 #C77E42 #49C742 #428CC7
split-complementary
#C042C7 #8CC742 #42C77E
monochromatic
#6A216E #972F9D #C042C7 #D071D5 #DFA0E3

Accessibility & contrast

On white

4.33
#C042C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#C042C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042C7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042C7#FFFFFF#000000##000000
##C042C71.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#276FCB
Deuteranopia (green-blind)
#5D7FC4
Tritanopia (blue-blind)
#C5567F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c042c7;
/* rgb */ color: rgb(192, 66, 199);
/* oklch */ color: oklch(60.6% 0.220 325.7);
Tailwind
colors: {
  custom: {
    50: '#d780d8',
    500: '#c042c7',
    950: '#000000',
  },
}
SCSS
$custom: #c042c7;
$custom-light: #d780d8;
$custom-dark: #000000;
JSON
{
  "hex": "#c042c7",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 296.842,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.60576,
    "c": 0.22014,
    "h": 325.7
  },
  "luminance": 0.19226
}

Semantic roles & 50–950 ramp

primary
#C042C7
secondary
#98D095
accent
#DE4A52
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C042C7

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

Preview Lab → · Contrast checker → · Palette generator →

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