#C540A9#C540A9

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

Color values

HEX#C540A9
RGBrgb(197, 64, 169)
HSLhsl(313, 53%, 51%)
HSVhsv(313, 68%, 77%)
CMYKcmyk(0%, 67.5%, 14.2%, 22.7%)
CIE-LABlab(49.98, 63.50, -28.75)
CIE-LCHlch(49.98, 69.71, 335.64°)
OKLaboklab(59.55% 0.1869 -0.078)
OKLCHoklch(59.55% 0.203 337.3)
XYZxyz(32.0213, 18.4045, 39.3944)
Luminance0.1840 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540A9 #40C55C
analogous
#9F40C5 #C540A9 #C54066
triadic
#C540A9 #A9C540 #40A9C5
tetradic
#C540A9 #C59F40 #40C55C #4066C5
square
#C540A9 #C59F40 #40C55C #4066C5
split-complementary
#C540A9 #66C540 #40C59F
monochromatic
#6A205B #992F83 #C540A9 #D36FBE #E29ED3

Accessibility & contrast

On white

4.49
#C540A9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#C540A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540A9
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540A9#FFFFFF#000000##000000
##C540A91.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#446AAC
Deuteranopia (green-blind)
#6F7EA6
Tritanopia (blue-blind)
#CF476F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c540a9;
/* rgb */ color: rgb(197, 64, 169);
/* oklch */ color: oklch(59.5% 0.203 337.3);
Tailwind
colors: {
  custom: {
    50: '#da7fc3',
    500: '#c540a9',
    950: '#000000',
  },
}
SCSS
$custom: #c540a9;
$custom-light: #da7fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#c540a9",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 312.632,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59546,
    "c": 0.20254,
    "h": 337.3
  },
  "luminance": 0.18402
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C540A9

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

Preview Lab → · Contrast checker → · Palette generator →

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