#C540A1#C540A1

#C540A1 is a mid, vivid pink. Relative luminance 0.181; OKLCH L 59.2% C 0.197 H 340.4°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#C540A1
RGBrgb(197, 64, 161)
HSLhsl(316, 53%, 51%)
HSVhsv(316, 68%, 77%)
CMYKcmyk(0%, 67.5%, 18.3%, 22.7%)
CIE-LABlab(49.63, 62.35, -24.57)
CIE-LCHlch(49.63, 67.02, 338.49°)
OKLaboklab(59.18% 0.1857 -0.0662)
OKLCHoklch(59.18% 0.197 340.4)
XYZxyz(31.2932, 18.1133, 35.5594)
Luminance0.1811 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540A1 #40C564
analogous
#A740C5 #C540A1 #C5405E
triadic
#C540A1 #A1C540 #40A1C5
tetradic
#C540A1 #C5A740 #40C564 #405EC5
square
#C540A1 #C5A740 #40C564 #405EC5
split-complementary
#C540A1 #5EC540 #40C5A7
monochromatic
#6A2056 #992F7C #C540A1 #D36FB8 #E29ECF

Accessibility & contrast

On white

4.54
#C540A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#C540A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540A1
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540A1#FFFFFF#000000##000000
##C540A11.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4968A4
Deuteranopia (green-blind)
#727E9E
Tritanopia (blue-blind)
#D0436B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c540a1;
/* rgb */ color: rgb(197, 64, 161);
/* oklch */ color: oklch(59.2% 0.197 340.4);
Tailwind
colors: {
  custom: {
    50: '#da7fbd',
    500: '#c540a1',
    950: '#000000',
  },
}
SCSS
$custom: #c540a1;
$custom-light: #da7fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#c540a1",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 316.241,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59176,
    "c": 0.19711,
    "h": 340.4
  },
  "luminance": 0.1811
}

Semantic roles & 50–950 ramp

primary
#C540A1
secondary
#93CEA3
accent
#DD724B
background
#FDF8FB
surface
#FBEFF6
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C540A1

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

Preview Lab → · Contrast checker → · Palette generator →

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