#C02EA8#C02EA8

#C02EA8 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.2% C 0.219 H 335.8°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#C02EA8
RGBrgb(192, 46, 168)
HSLhsl(310, 61%, 47%)
HSVhsv(310, 76%, 75%)
CMYKcmyk(0%, 76%, 12.5%, 24.7%)
CIE-LABlab(46.96, 68.22, -32.94)
CIE-LCHlch(46.96, 75.76, 334.23°)
OKLaboklab(57.19% 0.1999 -0.0899)
OKLCHoklch(57.19% 0.219 335.8)
XYZxyz(29.7836, 15.9903, 38.5561)
Luminance0.1599 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02EA8 #2EC046
analogous
#8F2EC0 #C02EA8 #C02E5F
triadic
#C02EA8 #A8C02E #2EA8C0
tetradic
#C02EA8 #C08F2E #2EC046 #2E5FC0
square
#C02EA8 #C08F2E #2EC046 #2E5FC0
split-complementary
#C02EA8 #5FC02E #2EC08F
monochromatic
#5D1652 #8F227D #C02EA8 #D655C1 #E286D3

Accessibility & contrast

On white

5.00
#C02EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#C02EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02EA8
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02EA8#FFFFFF#000000##FFFFFF
##C02EA81.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F61AB
Deuteranopia (green-blind)
#6477A5
Tritanopia (blue-blind)
#CA3A69
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c02ea8;
/* rgb */ color: rgb(192, 46, 168);
/* oklch */ color: oklch(57.2% 0.219 335.8);
Tailwind
colors: {
  custom: {
    50: '#d777c2',
    500: '#c02ea8',
    950: '#000000',
  },
}
SCSS
$custom: #c02ea8;
$custom-light: #d777c2;
$custom-dark: #000000;
JSON
{
  "hex": "#c02ea8",
  "rgb": {
    "r": 192,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 309.863,
    "s": 61.345,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57187,
    "c": 0.21923,
    "h": 335.8
  },
  "luminance": 0.15988
}

Semantic roles & 50–950 ramp

primary
#C02EA8
secondary
#7ECC8B
accent
#E45E43
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C02EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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