#C540A5#C540A5

#C540A5 is a mid, vivid pink. Relative luminance 0.183; OKLCH L 59.4% C 0.200 H 338.8°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#C540A5
RGBrgb(197, 64, 165)
HSLhsl(314, 53%, 51%)
HSVhsv(314, 68%, 77%)
CMYKcmyk(0%, 67.5%, 16.2%, 22.7%)
CIE-LABlab(49.81, 62.92, -26.67)
CIE-LCHlch(49.81, 68.34, 337.03°)
OKLaboklab(59.36% 0.1863 -0.0721)
OKLCHoklch(59.36% 0.2 338.8)
XYZxyz(31.6516, 18.2566, 37.4469)
Luminance0.1825 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540A5 #40C560
analogous
#A240C5 #C540A5 #C54062
triadic
#C540A5 #A5C540 #40A5C5
tetradic
#C540A5 #C5A240 #40C560 #4062C5
square
#C540A5 #C5A240 #40C560 #4062C5
split-complementary
#C540A5 #62C540 #40C5A2
monochromatic
#6A2059 #992F80 #C540A5 #D36FBB #E29ED1

Accessibility & contrast

On white

4.52
#C540A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#C540A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540A5
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540A5#FFFFFF#000000##000000
##C540A51.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4669A8
Deuteranopia (green-blind)
#707EA2
Tritanopia (blue-blind)
#D0456D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c540a5;
/* rgb */ color: rgb(197, 64, 165);
/* oklch */ color: oklch(59.4% 0.200 338.8);
Tailwind
colors: {
  custom: {
    50: '#da7fc0',
    500: '#c540a5',
    950: '#000000',
  },
}
SCSS
$custom: #c540a5;
$custom-light: #da7fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#c540a5",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 314.436,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59359,
    "c": 0.19979,
    "h": 338.8
  },
  "luminance": 0.18254
}

Semantic roles & 50–950 ramp

primary
#C540A5
secondary
#93CEA1
accent
#DD6E4B
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C540A5

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

Preview Lab → · Contrast checker → · Palette generator →

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