#C540A8#C540A8

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

Color values

HEX#C540A8
RGBrgb(197, 64, 168)
HSLhsl(313, 53%, 51%)
HSVhsv(313, 68%, 77%)
CMYKcmyk(0%, 67.5%, 14.7%, 22.7%)
CIE-LABlab(49.94, 63.36, -28.23)
CIE-LCHlch(49.94, 69.36, 335.98°)
OKLaboklab(59.5% 0.1868 -0.0765)
OKLCHoklch(59.5% 0.202 337.7)
XYZxyz(31.9278, 18.3671, 38.9019)
Luminance0.1836 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540A8 #40C55D
analogous
#9F40C5 #C540A8 #C54065
triadic
#C540A8 #A8C540 #40A8C5
tetradic
#C540A8 #C59F40 #40C55D #4065C5
square
#C540A8 #C59F40 #40C55D #4065C5
split-complementary
#C540A8 #65C540 #40C59F
monochromatic
#6A205A #992F82 #C540A8 #D36FBD #E29ED3

Accessibility & contrast

On white

4.49
#C540A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##C540A8#FFFFFF#000000##000000
##C540A81.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#456AAB
Deuteranopia (green-blind)
#6F7EA5
Tritanopia (blue-blind)
#CF466E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c540a8;
/* rgb */ color: rgb(197, 64, 168);
/* oklch */ color: oklch(59.5% 0.202 337.7);
Tailwind
colors: {
  custom: {
    50: '#da7fc2',
    500: '#c540a8',
    950: '#000000',
  },
}
SCSS
$custom: #c540a8;
$custom-light: #da7fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#c540a8",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 313.083,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59498,
    "c": 0.20185,
    "h": 337.7
  },
  "luminance": 0.18364
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C540A8

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

Preview Lab → · Contrast checker → · Palette generator →

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