#C540AA#C540AA

#C540AA is a mid, highly saturated pink. Relative luminance 0.184; OKLCH L 59.6% C 0.203 H 337.0°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#C540AA
RGBrgb(197, 64, 170)
HSLhsl(312, 53%, 51%)
HSVhsv(312, 68%, 77%)
CMYKcmyk(0%, 67.5%, 13.7%, 22.7%)
CIE-LABlab(50.03, 63.65, -29.27)
CIE-LCHlch(50.03, 70.06, 335.31°)
OKLaboklab(59.59% 0.1871 -0.0795)
OKLCHoklch(59.59% 0.203 337)
XYZxyz(32.1156, 18.4422, 39.8907)
Luminance0.1844 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540AA #40C55B
analogous
#9D40C5 #C540AA #C54067
triadic
#C540AA #AAC540 #40AAC5
tetradic
#C540AA #C59D40 #40C55B #4067C5
square
#C540AA #C59D40 #40C55B #4067C5
split-complementary
#C540AA #67C540 #40C59D
monochromatic
#6A205B #992F84 #C540AA #D36FBF #E29ED4

Accessibility & contrast

On white

4.48
#C540AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#C540AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540AA
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540AA#FFFFFF#000000##000000
##C540AA1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#436AAD
Deuteranopia (green-blind)
#6F7EA7
Tritanopia (blue-blind)
#CF476F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c540aa;
/* rgb */ color: rgb(197, 64, 170);
/* oklch */ color: oklch(59.6% 0.203 337.0);
Tailwind
colors: {
  custom: {
    50: '#da7fc3',
    500: '#c540aa',
    950: '#000000',
  },
}
SCSS
$custom: #c540aa;
$custom-light: #da7fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#c540aa",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 312.18,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59593,
    "c": 0.20324,
    "h": 337
  },
  "luminance": 0.18439
}

Semantic roles & 50–950 ramp

primary
#C540AA
secondary
#93CE9F
accent
#DD694B
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B12
muted
#837C81

Preview Lab

Preview with #C540AA

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

Preview Lab → · Contrast checker → · Palette generator →

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