#C040AB#C040AB

#C040AB is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 58.9% C 0.201 H 335.0°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#C040AB
RGBrgb(192, 64, 171)
HSLhsl(310, 50%, 50%)
HSVhsv(310, 67%, 75%)
CMYKcmyk(0%, 66.7%, 10.9%, 24.7%)
CIE-LABlab(49.27, 62.54, -31.09)
CIE-LCHlch(49.27, 69.84, 333.56°)
OKLaboklab(58.9% 0.1821 -0.0848)
OKLCHoklch(58.9% 0.201 335)
XYZxyz(30.9226, 17.8161, 40.3304)
Luminance0.1781 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040AB #40C055
analogous
#9540C0 #C040AB #C0406B
triadic
#C040AB #ABC040 #40ABC0
tetradic
#C040AB #C09540 #40C055 #406BC0
square
#C040AB #C09540 #40C055 #406BC0
split-complementary
#C040AB #6BC040 #40C095
monochromatic
#642159 #923082 #C040AB #CF6EBF #DE9CD3

Accessibility & contrast

On white

4.60
#C040AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#C040AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C040AB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040AB#FFFFFF#000000##FFFFFF
##C040AB1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4069AE
Deuteranopia (green-blind)
#6A7CA8
Tritanopia (blue-blind)
#C94970
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c040ab;
/* rgb */ color: rgb(192, 64, 171);
/* oklch */ color: oklch(58.9% 0.201 335.0);
Tailwind
colors: {
  custom: {
    50: '#d67fc4',
    500: '#c040ab',
    950: '#000000',
  },
}
SCSS
$custom: #c040ab;
$custom-light: #d67fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#c040ab",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 309.844,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58903,
    "c": 0.20087,
    "h": 335
  },
  "luminance": 0.17814
}

Semantic roles & 50–950 ramp

primary
#C040AB
secondary
#91CB9B
accent
#DA654E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B12
muted
#837C81

Preview Lab

Preview with #C040AB

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

Preview Lab → · Contrast checker → · Palette generator →

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