#C042CA#C042CA

#C042CA is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.7% C 0.223 H 324.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#C042CA
RGBrgb(192, 66, 202)
HSLhsl(296, 56%, 53%)
HSVhsv(296, 67%, 79%)
CMYKcmyk(5%, 67.3%, 0%, 20.8%)
CIE-LABlab(51.12, 66.84, -46.22)
CIE-LCHlch(51.12, 81.26, 325.34°)
OKLaboklab(60.75% 0.1818 -0.1285)
OKLCHoklch(60.75% 0.223 324.8)
XYZxyz(34.3463, 19.3693, 57.7952)
Luminance0.1937 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042CA #4CCA42
analogous
#7C42CA #C042CA #CA4290
triadic
#C042CA #CAC042 #42CAC0
tetradic
#C042CA #CA7C42 #4CCA42 #4290CA
square
#C042CA #CA7C42 #4CCA42 #4290CA
split-complementary
#C042CA #90CA42 #42CA7C
monochromatic
#6C2072 #992DA2 #C042CA #D072D7 #E0A2E5

Accessibility & contrast

On white

4.31
#C042CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#C042CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042CA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042CA#FFFFFF#000000##000000
##C042CA1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2370CE
Deuteranopia (green-blind)
#5C7FC7
Tritanopia (blue-blind)
#C45881
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c042ca;
/* rgb */ color: rgb(192, 66, 202);
/* oklch */ color: oklch(60.7% 0.223 324.8);
Tailwind
colors: {
  custom: {
    50: '#d780db',
    500: '#c042ca',
    950: '#000000',
  },
}
SCSS
$custom: #c042ca;
$custom-light: #d780db;
$custom-dark: #000000;
JSON
{
  "hex": "#c042ca",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 295.588,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60746,
    "c": 0.22259,
    "h": 324.8
  },
  "luminance": 0.19367
}

Semantic roles & 50–950 ramp

primary
#C042CA
secondary
#9BD196
accent
#DF4853
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C042CA

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

Preview Lab → · Contrast checker → · Palette generator →

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