#C02A9F#C02A9F

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

Color values

HEX#C02A9F
RGBrgb(192, 42, 159)
HSLhsl(313, 64%, 46%)
HSVhsv(313, 78%, 75%)
CMYKcmyk(0%, 78.1%, 17.2%, 24.7%)
CIE-LABlab(46.13, 68.11, -28.88)
CIE-LCHlch(46.13, 73.98, 337.02°)
OKLaboklab(56.45% 0.2025 -0.0783)
OKLCHoklch(56.45% 0.217 338.9)
XYZxyz(28.8250, 15.3685, 34.2425)
Luminance0.1537 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02A9F #2AC04B
analogous
#962AC0 #C02A9F #C02A54
triadic
#C02A9F #9FC02A #2A9FC0
tetradic
#C02A9F #C0962A #2AC04B #2A54C0
square
#C02A9F #C0962A #2AC04B #2A54C0
split-complementary
#C02A9F #54C02A #2AC096
monochromatic
#5C144C #8E1F75 #C02A9F #D84FBA #E381CE

Accessibility & contrast

On white

5.16
#C02A9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#C02A9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02A9F
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02A9F#FFFFFF#000000##FFFFFF
##C02A9F1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335EA2
Deuteranopia (green-blind)
#67769C
Tritanopia (blue-blind)
#CB3263
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c02a9f;
/* rgb */ color: rgb(192, 42, 159);
/* oklch */ color: oklch(56.5% 0.217 338.9);
Tailwind
colors: {
  custom: {
    50: '#d775bb',
    500: '#c02a9f',
    950: '#000000',
  },
}
SCSS
$custom: #c02a9f;
$custom-light: #d775bb;
$custom-dark: #000000;
JSON
{
  "hex": "#c02a9f",
  "rgb": {
    "r": 192,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 313.2,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56452,
    "c": 0.21713,
    "h": 338.9
  },
  "luminance": 0.15366
}

Semantic roles & 50–950 ramp

primary
#C02A9F
secondary
#7ACC8C
accent
#E76541
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #C02A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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