#C02A9C#C02A9C

#C02A9C is a mid, highly saturated pink. Relative luminance 0.153; OKLCH L 56.3% C 0.215 H 339.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#C02A9C
RGBrgb(192, 42, 156)
HSLhsl(314, 64%, 46%)
HSVhsv(314, 78%, 75%)
CMYKcmyk(0%, 78.1%, 18.7%, 24.7%)
CIE-LABlab(46.00, 67.70, -27.30)
CIE-LCHlch(46.00, 73.00, 338.04°)
OKLaboklab(56.31% 0.2022 -0.0738)
OKLCHoklch(56.31% 0.215 339.9)
XYZxyz(28.5678, 15.2656, 32.8881)
Luminance0.1526 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02A9C #2AC04E
analogous
#992AC0 #C02A9C #C02A51
triadic
#C02A9C #9CC02A #2A9CC0
tetradic
#C02A9C #C0992A #2AC04E #2A51C0
square
#C02A9C #C0992A #2AC04E #2A51C0
split-complementary
#C02A9C #51C02A #2AC099
monochromatic
#5C144A #8E1F73 #C02A9C #D84FB7 #E381CC

Accessibility & contrast

On white

5.18
#C02A9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#C02A9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02A9C
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02A9C#FFFFFF#000000##FFFFFF
##C02A9C1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365E9F
Deuteranopia (green-blind)
#687599
Tritanopia (blue-blind)
#CC3061
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c02a9c;
/* rgb */ color: rgb(192, 42, 156);
/* oklch */ color: oklch(56.3% 0.215 339.9);
Tailwind
colors: {
  custom: {
    50: '#d775b9',
    500: '#c02a9c',
    950: '#000000',
  },
}
SCSS
$custom: #c02a9c;
$custom-light: #d775b9;
$custom-dark: #000000;
JSON
{
  "hex": "#c02a9c",
  "rgb": {
    "r": 192,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 314.4,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56307,
    "c": 0.21523,
    "h": 339.9
  },
  "luminance": 0.15263
}

Semantic roles & 50–950 ramp

primary
#C02A9C
secondary
#7ACC8D
accent
#E76941
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #C02A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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