#C540A9#C540A9
#C540A9 is a mid, highly saturated pink. Relative luminance 0.184; OKLCH L 59.5% C 0.203 H 337.3°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).
Color values
| HEX | #C540A9 |
|---|---|
| RGB | rgb(197, 64, 169) |
| HSL | hsl(313, 53%, 51%) |
| HSV | hsv(313, 68%, 77%) |
| CMYK | cmyk(0%, 67.5%, 14.2%, 22.7%) |
| CIE-LAB | lab(49.98, 63.50, -28.75) |
| CIE-LCH | lch(49.98, 69.71, 335.64°) |
| OKLab | oklab(59.55% 0.1869 -0.078) |
| OKLCH | oklch(59.55% 0.203 337.3) |
| XYZ | xyz(32.0213, 18.4045, 39.3944) |
| Luminance | 0.1840 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 2.89
Pinky Purple
#C94CBE
ΔE00 4.29
Ugly Purple
#A442A0
ΔE00 6.56
Purplish Pink
#CE5DAE
ΔE00 6.69
Purpleish Pink
#DF4EC8
ΔE00 7.47
Medium Purple
#9E43A2
ΔE00 7.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C540A9 #40C55C
analogous
#9F40C5 #C540A9 #C54066
triadic
#C540A9 #A9C540 #40A9C5
tetradic
#C540A9 #C59F40 #40C55C #4066C5
square
#C540A9 #C59F40 #40C55C #4066C5
split-complementary
#C540A9 #66C540 #40C59F
monochromatic
#6A205B #992F83 #C540A9 #D36FBE #E29ED3
Accessibility & contrast
On white
4.49
#C540A9 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.68
#C540A9 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C540A9
4.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C540A9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C540A9 | 1.00 | 4.49 | 4.68 | 4.68 |
| #FFFFFF | 4.49 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#446AAC
Deuteranopia (green-blind)
#6F7EA6
Tritanopia (blue-blind)
#CF476F
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #c540a9; /* rgb */ color: rgb(197, 64, 169); /* oklch */ color: oklch(59.5% 0.203 337.3);
Tailwind
colors: {
custom: {
50: '#da7fc3',
500: '#c540a9',
950: '#000000',
},
}SCSS
$custom: #c540a9; $custom-light: #da7fc3; $custom-dark: #000000;
JSON
{
"hex": "#c540a9",
"rgb": {
"r": 197,
"g": 64,
"b": 169
},
"hsl": {
"h": 312.632,
"s": 53.414,
"l": 51.176
},
"oklch": {
"l": 0.59546,
"c": 0.20254,
"h": 337.3
},
"luminance": 0.18402
}Semantic roles & 50–950 ramp
primary
#C540A9
secondary
#93CE9F
accent
#DD6A4B
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B12
muted
#837C81