#C540A3#C540A3

#C540A3 is a mid, vivid pink. Relative luminance 0.182; OKLCH L 59.3% C 0.198 H 339.6°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#C540A3
RGBrgb(197, 64, 163)
HSLhsl(315, 53%, 51%)
HSVhsv(315, 68%, 77%)
CMYKcmyk(0%, 67.5%, 17.3%, 22.7%)
CIE-LABlab(49.72, 62.64, -25.62)
CIE-LCHlch(49.72, 67.67, 337.75°)
OKLaboklab(59.27% 0.186 -0.0691)
OKLCHoklch(59.27% 0.198 339.6)
XYZxyz(31.4710, 18.1844, 36.4957)
Luminance0.1818 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540A3 #40C562
analogous
#A440C5 #C540A3 #C54060
triadic
#C540A3 #A3C540 #40A3C5
tetradic
#C540A3 #C5A440 #40C562 #4060C5
square
#C540A3 #C5A440 #40C562 #4060C5
split-complementary
#C540A3 #60C540 #40C5A4
monochromatic
#6A2057 #992F7E #C540A3 #D36FBA #E29ED0

Accessibility & contrast

On white

4.53
#C540A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#C540A3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540A3
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540A3#FFFFFF#000000##000000
##C540A31.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4869A6
Deuteranopia (green-blind)
#717EA0
Tritanopia (blue-blind)
#D0446C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c540a3;
/* rgb */ color: rgb(197, 64, 163);
/* oklch */ color: oklch(59.3% 0.198 339.6);
Tailwind
colors: {
  custom: {
    50: '#da7fbe',
    500: '#c540a3',
    950: '#000000',
  },
}
SCSS
$custom: #c540a3;
$custom-light: #da7fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#c540a3",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 315.338,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59267,
    "c": 0.19844,
    "h": 339.6
  },
  "luminance": 0.18181
}

Semantic roles & 50–950 ramp

primary
#C540A3
secondary
#93CEA2
accent
#DD704B
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C540A3

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

Preview Lab → · Contrast checker → · Palette generator →

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