#540E28#540E28

#540E28 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.0% C 0.103 H 3.8°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#540E28
RGBrgb(84, 14, 40)
HSLhsl(338, 71%, 19%)
HSVhsv(338, 83%, 33%)
CMYKcmyk(0%, 83.3%, 52.4%, 67.1%)
CIE-LABlab(17.24, 33.45, 2.51)
CIE-LCHlch(17.24, 33.54, 4.28°)
OKLaboklab(29.99% 0.1025 0.0068)
OKLCHoklch(29.99% 0.103 3.8)
XYZxyz(4.1966, 2.3527, 2.2402)
Luminance0.0235 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E28 #0E543A
analogous
#540E4B #540E28 #54170E
triadic
#540E28 #28540E #0E2854
tetradic
#540E28 #4B540E #0E543A #170E54
square
#540E28 #4B540E #0E543A #170E54
split-complementary
#540E28 #0E5417 #0E4B54
monochromatic
#1A040C #20050F #540E28 #881741 #BD1F5A

Accessibility & contrast

On white

14.28
#540E28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#540E28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540E28
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E28#FFFFFF#000000##FFFFFF
##540E281.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2229
Deuteranopia (green-blind)
#322F26
Tritanopia (blue-blind)
#5C0119
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540e28;
/* rgb */ color: rgb(84, 14, 40);
/* oklch */ color: oklch(30.0% 0.103 3.8);
Tailwind
colors: {
  custom: {
    50: '#885461',
    500: '#540e28',
    950: '#000000',
  },
}
SCSS
$custom: #540e28;
$custom-light: #885461;
$custom-dark: #000000;
JSON
{
  "hex": "#540e28",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 40
  },
  "hsl": {
    "h": 337.714,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29991,
    "c": 0.10267,
    "h": 3.8
  },
  "luminance": 0.02352
}

Semantic roles & 50–950 ramp

primary
#540E28
secondary
#2F8E6B
accent
#EEAB3A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #540E28

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

Preview Lab → · Contrast checker → · Palette generator →

#540E28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva