#C02AA1#C02AA1

#C02AA1 is a mid, highly saturated pink. Relative luminance 0.154; OKLCH L 56.5% C 0.218 H 338.2°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#C02AA1
RGBrgb(192, 42, 161)
HSLhsl(312, 64%, 46%)
HSVhsv(312, 78%, 75%)
CMYKcmyk(0%, 78.1%, 16.1%, 24.7%)
CIE-LABlab(46.23, 68.38, -29.93)
CIE-LCHlch(46.23, 74.64, 336.36°)
OKLaboklab(56.55% 0.2027 -0.0813)
OKLCHoklch(56.55% 0.218 338.2)
XYZxyz(28.9999, 15.4384, 35.1639)
Luminance0.1544 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02AA1 #2AC049
analogous
#942AC0 #C02AA1 #C02A56
triadic
#C02AA1 #A1C02A #2AA1C0
tetradic
#C02AA1 #C0942A #2AC049 #2A56C0
square
#C02AA1 #C0942A #2AC049 #2A56C0
split-complementary
#C02AA1 #56C02A #2AC094
monochromatic
#5C144D #8E1F77 #C02AA1 #D84FBC #E381CF

Accessibility & contrast

On white

5.14
#C02AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#C02AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02AA1
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02AA1#FFFFFF#000000##FFFFFF
##C02AA11.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325FA4
Deuteranopia (green-blind)
#66769E
Tritanopia (blue-blind)
#CB3364
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c02aa1;
/* rgb */ color: rgb(192, 42, 161);
/* oklch */ color: oklch(56.5% 0.218 338.2);
Tailwind
colors: {
  custom: {
    50: '#d775bd',
    500: '#c02aa1',
    950: '#000000',
  },
}
SCSS
$custom: #c02aa1;
$custom-light: #d775bd;
$custom-dark: #000000;
JSON
{
  "hex": "#c02aa1",
  "rgb": {
    "r": 192,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 312.4,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5655,
    "c": 0.21842,
    "h": 338.2
  },
  "luminance": 0.15436
}

Semantic roles & 50–950 ramp

primary
#C02AA1
secondary
#7ACC8B
accent
#E76341
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #C02AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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