#C040AD#C040AD

#C040AD is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.0% C 0.202 H 334.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#C040AD
RGBrgb(192, 64, 173)
HSLhsl(309, 50%, 50%)
HSVhsv(309, 67%, 75%)
CMYKcmyk(0%, 66.7%, 9.9%, 24.7%)
CIE-LABlab(49.37, 62.85, -32.12)
CIE-LCHlch(49.37, 70.58, 332.93°)
OKLaboklab(59% 0.1823 -0.0877)
OKLCHoklch(59% 0.202 334.3)
XYZxyz(31.1147, 17.8929, 41.3420)
Luminance0.1789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040AD #40C053
analogous
#9340C0 #C040AD #C0406D
triadic
#C040AD #ADC040 #40ADC0
tetradic
#C040AD #C09340 #40C053 #406DC0
square
#C040AD #C09340 #40C053 #406DC0
split-complementary
#C040AD #6DC040 #40C093
monochromatic
#64215A #923084 #C040AD #CF6EC1 #DE9CD5

Accessibility & contrast

On white

4.59
#C040AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#C040AD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C040AD
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040AD#FFFFFF#000000##FFFFFF
##C040AD1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E69B0
Deuteranopia (green-blind)
#697CAA
Tritanopia (blue-blind)
#C94A71
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c040ad;
/* rgb */ color: rgb(192, 64, 173);
/* oklch */ color: oklch(59.0% 0.202 334.3);
Tailwind
colors: {
  custom: {
    50: '#d67fc6',
    500: '#c040ad',
    950: '#000000',
  },
}
SCSS
$custom: #c040ad;
$custom-light: #d67fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#c040ad",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 308.906,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59002,
    "c": 0.20234,
    "h": 334.3
  },
  "luminance": 0.1789
}

Semantic roles & 50–950 ramp

primary
#C040AD
secondary
#91CB9A
accent
#DA634E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C040AD

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

Preview Lab → · Contrast checker → · Palette generator →

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