#C040A7#C040A7

#C040A7 is a mid, vivid pink. Relative luminance 0.177; OKLCH L 58.7% C 0.198 H 336.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#C040A7
RGBrgb(192, 64, 167)
HSLhsl(312, 50%, 50%)
HSVhsv(312, 67%, 75%)
CMYKcmyk(0%, 66.7%, 13%, 24.7%)
CIE-LABlab(49.09, 61.94, -29.02)
CIE-LCHlch(49.09, 68.40, 334.89°)
OKLaboklab(58.71% 0.1816 -0.0789)
OKLCHoklch(58.71% 0.198 336.5)
XYZxyz(30.5471, 17.6659, 38.3528)
Luminance0.1766 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040A7 #40C059
analogous
#9940C0 #C040A7 #C04067
triadic
#C040A7 #A7C040 #40A7C0
tetradic
#C040A7 #C09940 #40C059 #4067C0
square
#C040A7 #C09940 #40C059 #4067C0
split-complementary
#C040A7 #67C040 #40C099
monochromatic
#642157 #92307F #C040A7 #CF6EBC #DE9CD1

Accessibility & contrast

On white

4.63
#C040A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C040A7
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040A7#FFFFFF#000000##FFFFFF
##C040A71.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4268AA
Deuteranopia (green-blind)
#6C7CA4
Tritanopia (blue-blind)
#CA476E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c040a7;
/* rgb */ color: rgb(192, 64, 167);
/* oklch */ color: oklch(58.7% 0.198 336.5);
Tailwind
colors: {
  custom: {
    50: '#d67ec1',
    500: '#c040a7',
    950: '#000000',
  },
}
SCSS
$custom: #c040a7;
$custom-light: #d67ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#c040a7",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 311.719,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5871,
    "c": 0.19798,
    "h": 336.5
  },
  "luminance": 0.17663
}

Semantic roles & 50–950 ramp

primary
#C040A7
secondary
#91CB9C
accent
#DA694E
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C040A7

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

Preview Lab → · Contrast checker → · Palette generator →

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