#C042E1#C042E1

#C042E1 is a light, highly saturated purple. Relative luminance 0.205; OKLCH L 62.1% C 0.242 H 318.4°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#C042E1
RGBrgb(192, 66, 225)
HSLhsl(288, 73%, 57%)
HSVhsv(288, 71%, 88%)
CMYKcmyk(14.7%, 70.7%, 0%, 11.8%)
CIE-LABlab(52.44, 70.97, -57.22)
CIE-LCHlch(52.44, 91.16, 321.12°)
OKLaboklab(62.12% 0.1809 -0.1606)
OKLCHoklch(62.12% 0.242 318.4)
XYZxyz(37.2752, 20.5408, 73.2209)
Luminance0.2054 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042E1 #63E142
analogous
#7142E1 #C042E1 #E142B3
triadic
#C042E1 #E1C042 #42E1C0
tetradic
#C042E1 #E17142 #63E142 #42B3E1
square
#C042E1 #E17142 #63E142 #42B3E1
split-complementary
#C042E1 #B3E142 #42E171
monochromatic
#781792 #A41FC6 #C042E1 #D277E9 #E3ACF2

Accessibility & contrast

On white

4.11
#C042E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#C042E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042E1
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042E1#FFFFFF#000000##000000
##C042E11.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E6
Deuteranopia (green-blind)
#4A81DD
Tritanopia (blue-blind)
#BF618E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c042e1;
/* rgb */ color: rgb(192, 66, 225);
/* oklch */ color: oklch(62.1% 0.242 318.4);
Tailwind
colors: {
  custom: {
    50: '#d781eb',
    500: '#c042e1',
    950: '#000000',
  },
}
SCSS
$custom: #c042e1;
$custom-light: #d781eb;
$custom-dark: #000000;
JSON
{
  "hex": "#c042e1",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 287.547,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.62122,
    "c": 0.24191,
    "h": 318.4
  },
  "luminance": 0.20539
}

Semantic roles & 50–950 ramp

primary
#C042E1
secondary
#ACE09F
accent
#EF385E
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #C042E1

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

Preview Lab → · Contrast checker → · Palette generator →

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