#C540A2#C540A2

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

Color values

HEX#C540A2
RGBrgb(197, 64, 162)
HSLhsl(316, 53%, 51%)
HSVhsv(316, 68%, 77%)
CMYKcmyk(0%, 67.5%, 17.8%, 22.7%)
CIE-LABlab(49.68, 62.49, -25.09)
CIE-LCHlch(49.68, 67.34, 338.12°)
OKLaboklab(59.22% 0.1858 -0.0676)
OKLCHoklch(59.22% 0.198 340)
XYZxyz(31.3817, 18.1487, 36.0257)
Luminance0.1815 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540A2 #40C563
analogous
#A540C5 #C540A2 #C5405F
triadic
#C540A2 #A2C540 #40A2C5
tetradic
#C540A2 #C5A540 #40C563 #405FC5
square
#C540A2 #C5A540 #40C563 #405FC5
split-complementary
#C540A2 #5FC540 #40C5A5
monochromatic
#6A2057 #992F7D #C540A2 #D36FB9 #E29ED0

Accessibility & contrast

On white

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

On black

4.63
#C540A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540A2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540A2#FFFFFF#000000##000000
##C540A21.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4869A5
Deuteranopia (green-blind)
#727E9F
Tritanopia (blue-blind)
#D0446B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c540a2;
/* rgb */ color: rgb(197, 64, 162);
/* oklch */ color: oklch(59.2% 0.198 340.0);
Tailwind
colors: {
  custom: {
    50: '#da7fbd',
    500: '#c540a2',
    950: '#000000',
  },
}
SCSS
$custom: #c540a2;
$custom-light: #da7fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#c540a2",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 315.789,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59222,
    "c": 0.19778,
    "h": 340
  },
  "luminance": 0.18146
}

Semantic roles & 50–950 ramp

primary
#C540A2
secondary
#93CEA2
accent
#DD714B
background
#FDF8FB
surface
#FBEFF6
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C540A2

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

Preview Lab → · Contrast checker → · Palette generator →

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