#540C27#540C27
#540C27 is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.8% C 0.105 H 4.2°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).
Color values
| HEX | #540C27 |
|---|---|
| RGB | rgb(84, 12, 39) |
| HSL | hsl(338, 75%, 19%) |
| HSV | hsv(338, 86%, 33%) |
| CMYK | cmyk(0%, 85.7%, 53.6%, 67.1%) |
| CIE-LAB | lab(16.96, 34.04, 2.83) |
| CIE-LCH | lch(16.96, 34.16, 4.76°) |
| OKLab | oklab(29.78% 0.1043 0.0076) |
| OKLCH | oklch(29.78% 0.105 4.2) |
| XYZ | xyz(4.1542, 2.2948, 2.1433) |
| Luminance | 0.0229 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Burgundy (survey)
#610023
ΔE00 4.10
Maroon (survey)
#650021
ΔE00 5.63
Merlot
#730039
ΔE00 6.68
Dark Maroon
#3C0008
ΔE00 7.82
Plum (survey)
#580F41
ΔE00 8.47
Dark Plum
#3F012C
ΔE00 8.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#540C27 #0C5439
analogous
#540C4B #540C27 #54150C
triadic
#540C27 #27540C #0C2754
tetradic
#540C27 #4B540C #0C5439 #150C54
square
#540C27 #4B540C #0C5439 #150C54
split-complementary
#540C27 #0C5415 #0C4B54
monochromatic
#1B040C #1E040E #540C27 #8A1440 #BF1B59
Accessibility & contrast
On white
14.40
#540C27 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#540C27 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #540C27
14.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##540C27 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##540C27 | 1.00 | 14.40 | 1.46 | 14.40 |
| #FFFFFF | 14.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E2128
Deuteranopia (green-blind)
#312F25
Tritanopia (blue-blind)
#5C0018
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #540c27; /* rgb */ color: rgb(84, 12, 39); /* oklch */ color: oklch(29.8% 0.105 4.2);
Tailwind
colors: {
custom: {
50: '#895460',
500: '#540c27',
950: '#000000',
},
}SCSS
$custom: #540c27; $custom-light: #895460; $custom-dark: #000000;
JSON
{
"hex": "#540c27",
"rgb": {
"r": 84,
"g": 12,
"b": 39
},
"hsl": {
"h": 337.5,
"s": 75,
"l": 18.824
},
"oklch": {
"l": 0.29779,
"c": 0.10452,
"h": 4.2
},
"luminance": 0.02294
}Semantic roles & 50–950 ramp
primary
#540C27
secondary
#2D8F6A
accent
#F2AB36
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0305
muted
#7D7879