#C040AA#C040AA

#C040AA is a mid, highly saturated pink. Relative luminance 0.178; OKLCH L 58.9% C 0.200 H 335.4°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#C040AA
RGBrgb(192, 64, 170)
HSLhsl(310, 50%, 50%)
HSVhsv(310, 67%, 75%)
CMYKcmyk(0%, 66.7%, 11.5%, 24.7%)
CIE-LABlab(49.23, 62.39, -30.58)
CIE-LCHlch(49.23, 69.48, 333.89°)
OKLaboklab(58.86% 0.182 -0.0833)
OKLCHoklch(58.86% 0.2 335.4)
XYZxyz(30.8277, 17.7781, 39.8303)
Luminance0.1778 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040AA #40C056
analogous
#9640C0 #C040AA #C0406A
triadic
#C040AA #AAC040 #40AAC0
tetradic
#C040AA #C09640 #40C056 #406AC0
square
#C040AA #C09640 #40C056 #406AC0
split-complementary
#C040AA #6AC040 #40C096
monochromatic
#642159 #923082 #C040AA #CF6EBE #DE9CD3

Accessibility & contrast

On white

4.61
#C040AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#C040AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C040AA
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040AA#FFFFFF#000000##FFFFFF
##C040AA1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4069AD
Deuteranopia (green-blind)
#6B7CA7
Tritanopia (blue-blind)
#C9496F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c040aa;
/* rgb */ color: rgb(192, 64, 170);
/* oklch */ color: oklch(58.9% 0.200 335.4);
Tailwind
colors: {
  custom: {
    50: '#d67fc3',
    500: '#c040aa',
    950: '#000000',
  },
}
SCSS
$custom: #c040aa;
$custom-light: #d67fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#c040aa",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 310.313,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58855,
    "c": 0.20014,
    "h": 335.4
  },
  "luminance": 0.17776
}

Semantic roles & 50–950 ramp

primary
#C040AA
secondary
#91CB9B
accent
#DA664E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B12
muted
#837C81

Preview Lab

Preview with #C040AA

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

Preview Lab → · Contrast checker → · Palette generator →

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