#C02A9B#C02A9B

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

Color values

HEX#C02A9B
RGBrgb(192, 42, 155)
HSLhsl(315, 64%, 46%)
HSVhsv(315, 78%, 75%)
CMYKcmyk(0%, 78.1%, 19.3%, 24.7%)
CIE-LABlab(45.95, 67.57, -26.77)
CIE-LCHlch(45.95, 72.68, 338.38°)
OKLaboklab(56.26% 0.2021 -0.0723)
OKLCHoklch(56.26% 0.215 340.3)
XYZxyz(28.4835, 15.2319, 32.4440)
Luminance0.1523 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02A9B #2AC04F
analogous
#9A2AC0 #C02A9B #C02A50
triadic
#C02A9B #9BC02A #2A9BC0
tetradic
#C02A9B #C09A2A #2AC04F #2A50C0
square
#C02A9B #C09A2A #2AC04F #2A50C0
split-complementary
#C02A9B #50C02A #2AC09A
monochromatic
#5C144A #8E1F72 #C02A9B #D84FB6 #E381CB

Accessibility & contrast

On white

5.19
#C02A9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C02A9B
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02A9B#FFFFFF#000000##FFFFFF
##C02A9B1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365E9E
Deuteranopia (green-blind)
#687598
Tritanopia (blue-blind)
#CC2F60
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c02a9b;
/* rgb */ color: rgb(192, 42, 155);
/* oklch */ color: oklch(56.3% 0.215 340.3);
Tailwind
colors: {
  custom: {
    50: '#d775b8',
    500: '#c02a9b',
    950: '#000000',
  },
}
SCSS
$custom: #c02a9b;
$custom-light: #d775b8;
$custom-dark: #000000;
JSON
{
  "hex": "#c02a9b",
  "rgb": {
    "r": 192,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 314.8,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56259,
    "c": 0.2146,
    "h": 340.3
  },
  "luminance": 0.15229
}

Semantic roles & 50–950 ramp

primary
#C02A9B
secondary
#7ACC8E
accent
#E76A41
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #C02A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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