#C040A4#C040A4

#C040A4 is a mid, vivid pink. Relative luminance 0.176; OKLCH L 58.6% C 0.196 H 337.7°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#C040A4
RGBrgb(192, 64, 164)
HSLhsl(313, 50%, 50%)
HSVhsv(313, 67%, 75%)
CMYKcmyk(0%, 66.7%, 14.6%, 24.7%)
CIE-LABlab(48.95, 61.49, -27.46)
CIE-LCHlch(48.95, 67.34, 335.93°)
OKLaboklab(58.57% 0.1812 -0.0744)
OKLCHoklch(58.57% 0.196 337.7)
XYZxyz(30.2730, 17.5563, 36.9091)
Luminance0.1755 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040A4 #40C05C
analogous
#9C40C0 #C040A4 #C04064
triadic
#C040A4 #A4C040 #40A4C0
tetradic
#C040A4 #C09C40 #40C05C #4064C0
square
#C040A4 #C09C40 #40C05C #4064C0
split-complementary
#C040A4 #64C040 #40C09C
monochromatic
#642156 #92307D #C040A4 #CF6EBA #DE9CD0

Accessibility & contrast

On white

4.66
#C040A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#C040A4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C040A4
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040A4#FFFFFF#000000##FFFFFF
##C040A41.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4468A7
Deuteranopia (green-blind)
#6D7BA1
Tritanopia (blue-blind)
#CA466C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #c040a4;
/* rgb */ color: rgb(192, 64, 164);
/* oklch */ color: oklch(58.6% 0.196 337.7);
Tailwind
colors: {
  custom: {
    50: '#d67ebf',
    500: '#c040a4',
    950: '#000000',
  },
}
SCSS
$custom: #c040a4;
$custom-light: #d67ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#c040a4",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 313.125,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58567,
    "c": 0.19585,
    "h": 337.7
  },
  "luminance": 0.17554
}

Semantic roles & 50–950 ramp

primary
#C040A4
secondary
#91CB9E
accent
#DA6D4E
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C040A4

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

Preview Lab → · Contrast checker → · Palette generator →

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