#540E2A#540E2A

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

Color values

HEX#540E2A
RGBrgb(84, 14, 42)
HSLhsl(336, 71%, 19%)
HSVhsv(336, 83%, 33%)
CMYKcmyk(0%, 83.3%, 50%, 67.1%)
CIE-LABlab(17.30, 33.66, 1.16)
CIE-LCHlch(17.30, 33.68, 1.97°)
OKLaboklab(30.06% 0.1033 0.0034)
OKLCHoklch(30.06% 0.103 1.9)
XYZxyz(4.2315, 2.3666, 2.4240)
Luminance0.0237 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E2A #0E5438
analogous
#540E4D #540E2A #54150E
triadic
#540E2A #2A540E #0E2A54
tetradic
#540E2A #4D540E #0E5438 #150E54
square
#540E2A #4D540E #0E5438 #150E54
split-complementary
#540E2A #0E5415 #0E4D54
monochromatic
#1A040D #200510 #540E2A #881744 #BD1F5E

Accessibility & contrast

On white

14.25
#540E2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540E2A
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E2A#FFFFFF#000000##FFFFFF
##540E2A1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F222B
Deuteranopia (green-blind)
#312F28
Tritanopia (blue-blind)
#5C021A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540e2a;
/* rgb */ color: rgb(84, 14, 42);
/* oklch */ color: oklch(30.1% 0.103 1.9);
Tailwind
colors: {
  custom: {
    50: '#885463',
    500: '#540e2a',
    950: '#000000',
  },
}
SCSS
$custom: #540e2a;
$custom-light: #885463;
$custom-dark: #000000;
JSON
{
  "hex": "#540e2a",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 42
  },
  "hsl": {
    "h": 336,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.30061,
    "c": 0.10331,
    "h": 1.9
  },
  "luminance": 0.02366
}

Semantic roles & 50–950 ramp

primary
#540E2A
secondary
#2F8E68
accent
#EEA63A
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #540E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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