#C042CC#C042CC

#C042CC is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.9% C 0.224 H 324.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#C042CC
RGBrgb(192, 66, 204)
HSLhsl(295, 58%, 53%)
HSVhsv(295, 68%, 80%)
CMYKcmyk(5.9%, 67.6%, 0%, 20%)
CIE-LABlab(51.23, 67.19, -47.19)
CIE-LCHlch(51.23, 82.11, 324.92°)
OKLaboklab(60.86% 0.1818 -0.1313)
OKLCHoklch(60.86% 0.224 324.2)
XYZxyz(34.5846, 19.4646, 59.0504)
Luminance0.1946 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042CC #4ECC42
analogous
#7B42CC #C042CC #CC4293
triadic
#C042CC #CCC042 #42CCC0
tetradic
#C042CC #CC7B42 #4ECC42 #4293CC
square
#C042CC #CC7B42 #4ECC42 #4293CC
split-complementary
#C042CC #93CC42 #42CC7B
monochromatic
#6D1F74 #9A2CA4 #C042CC #D072D9 #E0A2E6

Accessibility & contrast

On white

4.29
#C042CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#C042CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042CC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042CC#FFFFFF#000000##000000
##C042CC1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F70D0
Deuteranopia (green-blind)
#5A7FC9
Tritanopia (blue-blind)
#C45882
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c042cc;
/* rgb */ color: rgb(192, 66, 204);
/* oklch */ color: oklch(60.9% 0.224 324.2);
Tailwind
colors: {
  custom: {
    50: '#d781dc',
    500: '#c042cc',
    950: '#000000',
  },
}
SCSS
$custom: #c042cc;
$custom-light: #d781dc;
$custom-dark: #000000;
JSON
{
  "hex": "#c042cc",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 294.783,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.6086,
    "c": 0.22424,
    "h": 324.2
  },
  "luminance": 0.19463
}

Semantic roles & 50–950 ramp

primary
#C042CC
secondary
#9CD397
accent
#E14754
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C042CC

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

Preview Lab → · Contrast checker → · Palette generator →

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