#C540A4#C540A4

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

Color values

HEX#C540A4
RGBrgb(197, 64, 164)
HSLhsl(315, 53%, 51%)
HSVhsv(315, 68%, 77%)
CMYKcmyk(0%, 67.5%, 16.8%, 22.7%)
CIE-LABlab(49.76, 62.78, -26.14)
CIE-LCHlch(49.76, 68.01, 337.39°)
OKLaboklab(59.31% 0.1862 -0.0706)
OKLCHoklch(59.31% 0.199 339.2)
XYZxyz(31.5609, 18.2203, 36.9694)
Luminance0.1822 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540A4 #40C561
analogous
#A340C5 #C540A4 #C54061
triadic
#C540A4 #A4C540 #40A4C5
tetradic
#C540A4 #C5A340 #40C561 #4061C5
square
#C540A4 #C5A340 #40C561 #4061C5
split-complementary
#C540A4 #61C540 #40C5A3
monochromatic
#6A2058 #992F7F #C540A4 #D36FBA #E29ED1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C540A4#FFFFFF#000000##000000
##C540A41.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4769A7
Deuteranopia (green-blind)
#717EA1
Tritanopia (blue-blind)
#D0456C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c540a4;
/* rgb */ color: rgb(197, 64, 164);
/* oklch */ color: oklch(59.3% 0.199 339.2);
Tailwind
colors: {
  custom: {
    50: '#da7fbf',
    500: '#c540a4',
    950: '#000000',
  },
}
SCSS
$custom: #c540a4;
$custom-light: #da7fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#c540a4",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 314.887,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59313,
    "c": 0.19911,
    "h": 339.2
  },
  "luminance": 0.18217
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C540A4

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

Preview Lab → · Contrast checker → · Palette generator →

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