#C040A9#C040A9

#C040A9 is a mid, vivid pink. Relative luminance 0.177; OKLCH L 58.8% C 0.199 H 335.8°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#C040A9
RGBrgb(192, 64, 169)
HSLhsl(311, 50%, 50%)
HSVhsv(311, 67%, 75%)
CMYKcmyk(0%, 66.7%, 12%, 24.7%)
CIE-LABlab(49.18, 62.24, -30.06)
CIE-LCHlch(49.18, 69.12, 334.22°)
OKLaboklab(58.81% 0.1819 -0.0818)
OKLCHoklch(58.81% 0.199 335.8)
XYZxyz(30.7334, 17.7404, 39.3340)
Luminance0.1774 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040A9 #40C057
analogous
#9740C0 #C040A9 #C04069
triadic
#C040A9 #A9C040 #40A9C0
tetradic
#C040A9 #C09740 #40C057 #4069C0
square
#C040A9 #C09740 #40C057 #4069C0
split-complementary
#C040A9 #69C040 #40C097
monochromatic
#642158 #923081 #C040A9 #CF6EBE #DE9CD2

Accessibility & contrast

On white

4.62
#C040A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#C040A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C040A9
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040A9#FFFFFF#000000##FFFFFF
##C040A91.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4169AC
Deuteranopia (green-blind)
#6B7CA6
Tritanopia (blue-blind)
#C9486F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c040a9;
/* rgb */ color: rgb(192, 64, 169);
/* oklch */ color: oklch(58.8% 0.199 335.8);
Tailwind
colors: {
  custom: {
    50: '#d67ec3',
    500: '#c040a9',
    950: '#000000',
  },
}
SCSS
$custom: #c040a9;
$custom-light: #d67ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#c040a9",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 310.781,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58806,
    "c": 0.19941,
    "h": 335.8
  },
  "luminance": 0.17738
}

Semantic roles & 50–950 ramp

primary
#C040A9
secondary
#91CB9C
accent
#DA674E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B12
muted
#837C81

Preview Lab

Preview with #C040A9

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

Preview Lab → · Contrast checker → · Palette generator →

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