#C540A7#C540A7

#C540A7 is a mid, highly saturated pink. Relative luminance 0.183; OKLCH L 59.5% C 0.201 H 338.1°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#C540A7
RGBrgb(197, 64, 167)
HSLhsl(314, 53%, 51%)
HSVhsv(314, 68%, 77%)
CMYKcmyk(0%, 67.5%, 15.2%, 22.7%)
CIE-LABlab(49.89, 63.21, -27.71)
CIE-LCHlch(49.89, 69.02, 336.33°)
OKLaboklab(59.45% 0.1866 -0.075)
OKLCHoklch(59.45% 0.201 338.1)
XYZxyz(31.8350, 18.3300, 38.4131)
Luminance0.1833 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540A7 #40C55E
analogous
#A040C5 #C540A7 #C54064
triadic
#C540A7 #A7C540 #40A7C5
tetradic
#C540A7 #C5A040 #40C55E #4064C5
square
#C540A7 #C5A040 #40C55E #4064C5
split-complementary
#C540A7 #64C540 #40C5A0
monochromatic
#6A205A #992F81 #C540A7 #D36FBD #E29ED2

Accessibility & contrast

On white

4.50
#C540A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#C540A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540A7
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540A7#FFFFFF#000000##000000
##C540A71.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4569AA
Deuteranopia (green-blind)
#707EA4
Tritanopia (blue-blind)
#D0466E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c540a7;
/* rgb */ color: rgb(197, 64, 167);
/* oklch */ color: oklch(59.5% 0.201 338.1);
Tailwind
colors: {
  custom: {
    50: '#da7fc1',
    500: '#c540a7',
    950: '#000000',
  },
}
SCSS
$custom: #c540a7;
$custom-light: #da7fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#c540a7",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 313.534,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59452,
    "c": 0.20115,
    "h": 338.1
  },
  "luminance": 0.18327
}

Semantic roles & 50–950 ramp

primary
#C540A7
secondary
#93CEA0
accent
#DD6C4B
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C540A7

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

Preview Lab → · Contrast checker → · Palette generator →

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