#C040A3#C040A3

#C040A3 is a mid, vivid pink. Relative luminance 0.175; OKLCH L 58.5% C 0.195 H 338.0°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#C040A3
RGBrgb(192, 64, 163)
HSLhsl(314, 50%, 50%)
HSVhsv(314, 67%, 75%)
CMYKcmyk(0%, 66.7%, 15.1%, 24.7%)
CIE-LABlab(48.91, 61.34, -26.94)
CIE-LCHlch(48.91, 67.00, 336.29°)
OKLaboklab(58.52% 0.181 -0.0729)
OKLCHoklch(58.52% 0.195 338)
XYZxyz(30.1830, 17.5203, 36.4353)
Luminance0.1752 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040A3 #40C05D
analogous
#9D40C0 #C040A3 #C04063
triadic
#C040A3 #A3C040 #40A3C0
tetradic
#C040A3 #C09D40 #40C05D #4063C0
square
#C040A3 #C09D40 #40C05D #4063C0
split-complementary
#C040A3 #63C040 #40C09D
monochromatic
#642155 #92307C #C040A3 #CF6EB9 #DE9CCF

Accessibility & contrast

On white

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

On black

4.50
#C040A3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##C040A3#FFFFFF#000000##FFFFFF
##C040A31.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4567A6
Deuteranopia (green-blind)
#6D7BA0
Tritanopia (blue-blind)
#CA466C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #c040a3;
/* rgb */ color: rgb(192, 64, 163);
/* oklch */ color: oklch(58.5% 0.195 338.0);
Tailwind
colors: {
  custom: {
    50: '#d67ebe',
    500: '#c040a3',
    950: '#000000',
  },
}
SCSS
$custom: #c040a3;
$custom-light: #d67ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#c040a3",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 313.594,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58521,
    "c": 0.19516,
    "h": 338
  },
  "luminance": 0.17518
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C040A3

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

Preview Lab → · Contrast checker → · Palette generator →

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