#C02EA7#C02EA7

#C02EA7 is a mid, highly saturated pink. Relative luminance 0.160; OKLCH L 57.1% C 0.219 H 336.1°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#C02EA7
RGBrgb(192, 46, 167)
HSLhsl(310, 61%, 47%)
HSVhsv(310, 76%, 75%)
CMYKcmyk(0%, 76%, 13%, 24.7%)
CIE-LABlab(46.91, 68.08, -32.42)
CIE-LCHlch(46.91, 75.41, 334.53°)
OKLaboklab(57.14% 0.1999 -0.0884)
OKLCHoklch(57.14% 0.219 336.1)
XYZxyz(29.6908, 15.9532, 38.0673)
Luminance0.1595 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02EA7 #2EC047
analogous
#902EC0 #C02EA7 #C02E5E
triadic
#C02EA7 #A7C02E #2EA7C0
tetradic
#C02EA7 #C0902E #2EC047 #2E5EC0
square
#C02EA7 #C0902E #2EC047 #2E5EC0
split-complementary
#C02EA7 #5EC02E #2EC090
monochromatic
#5D1651 #8F227C #C02EA7 #D655C0 #E286D2

Accessibility & contrast

On white

5.01
#C02EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#C02EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02EA7
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02EA7#FFFFFF#000000##FFFFFF
##C02EA71.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3061AA
Deuteranopia (green-blind)
#6577A4
Tritanopia (blue-blind)
#CA3968
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c02ea7;
/* rgb */ color: rgb(192, 46, 167);
/* oklch */ color: oklch(57.1% 0.219 336.1);
Tailwind
colors: {
  custom: {
    50: '#d776c1',
    500: '#c02ea7',
    950: '#000000',
  },
}
SCSS
$custom: #c02ea7;
$custom-light: #d776c1;
$custom-dark: #000000;
JSON
{
  "hex": "#c02ea7",
  "rgb": {
    "r": 192,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 310.274,
    "s": 61.345,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57136,
    "c": 0.21857,
    "h": 336.1
  },
  "luminance": 0.1595
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C02EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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