#C040A6#C040A6

#C040A6 is a mid, vivid pink. Relative luminance 0.176; OKLCH L 58.7% C 0.197 H 336.9°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#C040A6
RGBrgb(192, 64, 166)
HSLhsl(312, 50%, 50%)
HSVhsv(312, 67%, 75%)
CMYKcmyk(0%, 66.7%, 13.5%, 24.7%)
CIE-LABlab(49.04, 61.79, -28.50)
CIE-LCHlch(49.04, 68.04, 335.23°)
OKLaboklab(58.66% 0.1815 -0.0774)
OKLCHoklch(58.66% 0.197 336.9)
XYZxyz(30.4550, 17.6291, 37.8678)
Luminance0.1763 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040A6 #40C05A
analogous
#9A40C0 #C040A6 #C04066
triadic
#C040A6 #A6C040 #40A6C0
tetradic
#C040A6 #C09A40 #40C05A #4066C0
square
#C040A6 #C09A40 #40C05A #4066C0
split-complementary
#C040A6 #66C040 #40C09A
monochromatic
#642157 #92307F #C040A6 #CF6EBB #DE9CD1

Accessibility & contrast

On white

4.64
#C040A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#C040A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C040A6
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040A6#FFFFFF#000000##FFFFFF
##C040A61.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4368A9
Deuteranopia (green-blind)
#6C7CA3
Tritanopia (blue-blind)
#CA476D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c040a6;
/* rgb */ color: rgb(192, 64, 166);
/* oklch */ color: oklch(58.7% 0.197 336.9);
Tailwind
colors: {
  custom: {
    50: '#d67ec0',
    500: '#c040a6',
    950: '#000000',
  },
}
SCSS
$custom: #c040a6;
$custom-light: #d67ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#c040a6",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 312.188,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58662,
    "c": 0.19726,
    "h": 336.9
  },
  "luminance": 0.17626
}

Semantic roles & 50–950 ramp

primary
#C040A6
secondary
#91CB9D
accent
#DA6A4E
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C040A6

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

Preview Lab → · Contrast checker → · Palette generator →

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