#C040A2#C040A2

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

Color values

HEX#C040A2
RGBrgb(192, 64, 162)
HSLhsl(314, 50%, 50%)
HSVhsv(314, 67%, 75%)
CMYKcmyk(0%, 66.7%, 15.6%, 24.7%)
CIE-LABlab(48.86, 61.20, -26.42)
CIE-LCHlch(48.86, 66.65, 336.65°)
OKLaboklab(58.47% 0.1809 -0.0715)
OKLCHoklch(58.47% 0.194 338.4)
XYZxyz(30.0938, 17.4846, 35.9653)
Luminance0.1748 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040A2 #40C05E
analogous
#9E40C0 #C040A2 #C04062
triadic
#C040A2 #A2C040 #40A2C0
tetradic
#C040A2 #C09E40 #40C05E #4062C0
square
#C040A2 #C09E40 #40C05E #4062C0
split-complementary
#C040A2 #62C040 #40C09E
monochromatic
#642155 #92307B #C040A2 #CF6EB8 #DE9CCF

Accessibility & contrast

On white

4.67
#C040A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C040A2
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040A2#FFFFFF#000000##FFFFFF
##C040A21.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4567A5
Deuteranopia (green-blind)
#6E7B9F
Tritanopia (blue-blind)
#CA456B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #c040a2;
/* rgb */ color: rgb(192, 64, 162);
/* oklch */ color: oklch(58.5% 0.194 338.4);
Tailwind
colors: {
  custom: {
    50: '#d67ebd',
    500: '#c040a2',
    950: '#000000',
  },
}
SCSS
$custom: #c040a2;
$custom-light: #d67ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#c040a2",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 314.063,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58474,
    "c": 0.19447,
    "h": 338.4
  },
  "luminance": 0.17482
}

Semantic roles & 50–950 ramp

primary
#C040A2
secondary
#91CB9F
accent
#DA6F4E
background
#FDF8FB
surface
#FBEFF6
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C040A2

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

Preview Lab → · Contrast checker → · Palette generator →

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