#C040A8#C040A8

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

Color values

HEX#C040A8
RGBrgb(192, 64, 168)
HSLhsl(311, 50%, 50%)
HSVhsv(311, 67%, 75%)
CMYKcmyk(0%, 66.7%, 12.5%, 24.7%)
CIE-LABlab(49.13, 62.09, -29.54)
CIE-LCHlch(49.13, 68.76, 334.55°)
OKLaboklab(58.76% 0.1817 -0.0803)
OKLCHoklch(58.76% 0.199 336.1)
XYZxyz(30.6399, 17.7030, 38.8415)
Luminance0.1770 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040A8 #40C058
analogous
#9840C0 #C040A8 #C04068
triadic
#C040A8 #A8C040 #40A8C0
tetradic
#C040A8 #C09840 #40C058 #4068C0
square
#C040A8 #C09840 #40C058 #4068C0
split-complementary
#C040A8 #68C040 #40C098
monochromatic
#642158 #923080 #C040A8 #CF6EBD #DE9CD2

Accessibility & contrast

On white

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

On black

4.54
#C040A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##C040A8#FFFFFF#000000##FFFFFF
##C040A81.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4268AB
Deuteranopia (green-blind)
#6B7CA5
Tritanopia (blue-blind)
#CA486E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c040a8;
/* rgb */ color: rgb(192, 64, 168);
/* oklch */ color: oklch(58.8% 0.199 336.1);
Tailwind
colors: {
  custom: {
    50: '#d67ec2',
    500: '#c040a8',
    950: '#000000',
  },
}
SCSS
$custom: #c040a8;
$custom-light: #d67ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#c040a8",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 311.25,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58758,
    "c": 0.19869,
    "h": 336.1
  },
  "luminance": 0.177
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C040A8

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

Preview Lab → · Contrast checker → · Palette generator →

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