#C040AC#C040AC

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

Color values

HEX#C040AC
RGBrgb(192, 64, 172)
HSLhsl(309, 50%, 50%)
HSVhsv(309, 67%, 75%)
CMYKcmyk(0%, 66.7%, 10.4%, 24.7%)
CIE-LABlab(49.32, 62.69, -31.61)
CIE-LCHlch(49.32, 70.21, 333.24°)
OKLaboklab(58.95% 0.1822 -0.0863)
OKLCHoklch(58.95% 0.202 334.7)
XYZxyz(31.0183, 17.8544, 40.8343)
Luminance0.1785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040AC #40C054
analogous
#9440C0 #C040AC #C0406C
triadic
#C040AC #ACC040 #40ACC0
tetradic
#C040AC #C09440 #40C054 #406CC0
square
#C040AC #C09440 #40C054 #406CC0
split-complementary
#C040AC #6CC040 #40C094
monochromatic
#64215A #923083 #C040AC #CF6EC0 #DE9CD4

Accessibility & contrast

On white

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

On black

4.57
#C040AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##C040AC#FFFFFF#000000##FFFFFF
##C040AC1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F69AF
Deuteranopia (green-blind)
#6A7CA9
Tritanopia (blue-blind)
#C94970
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c040ac;
/* rgb */ color: rgb(192, 64, 172);
/* oklch */ color: oklch(59.0% 0.202 334.7);
Tailwind
colors: {
  custom: {
    50: '#d67fc5',
    500: '#c040ac',
    950: '#000000',
  },
}
SCSS
$custom: #c040ac;
$custom-light: #d67fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#c040ac",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 309.375,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58953,
    "c": 0.20161,
    "h": 334.7
  },
  "luminance": 0.17852
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C040AC

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

Preview Lab → · Contrast checker → · Palette generator →

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