#C040A5#C040A5

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

Color values

HEX#C040A5
RGBrgb(192, 64, 165)
HSLhsl(313, 50%, 50%)
HSVhsv(313, 67%, 75%)
CMYKcmyk(0%, 66.7%, 14.1%, 24.7%)
CIE-LABlab(49.00, 61.64, -27.98)
CIE-LCHlch(49.00, 67.69, 335.58°)
OKLaboklab(58.61% 0.1813 -0.0759)
OKLCHoklch(58.61% 0.197 337.3)
XYZxyz(30.3637, 17.5925, 37.3866)
Luminance0.1759 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040A5 #40C05B
analogous
#9B40C0 #C040A5 #C04065
triadic
#C040A5 #A5C040 #40A5C0
tetradic
#C040A5 #C09B40 #40C05B #4065C0
square
#C040A5 #C09B40 #40C05B #4065C0
split-complementary
#C040A5 #65C040 #40C09B
monochromatic
#642156 #92307E #C040A5 #CF6EBB #DE9CD0

Accessibility & contrast

On white

4.65
#C040A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#C040A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C040A5
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040A5#FFFFFF#000000##FFFFFF
##C040A51.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4468A8
Deuteranopia (green-blind)
#6D7CA2
Tritanopia (blue-blind)
#CA466D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #c040a5;
/* rgb */ color: rgb(192, 64, 165);
/* oklch */ color: oklch(58.6% 0.197 337.3);
Tailwind
colors: {
  custom: {
    50: '#d67ec0',
    500: '#c040a5',
    950: '#000000',
  },
}
SCSS
$custom: #c040a5;
$custom-light: #d67ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#c040a5",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 312.656,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58615,
    "c": 0.19656,
    "h": 337.3
  },
  "luminance": 0.1759
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C040A5

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

Preview Lab → · Contrast checker → · Palette generator →

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