#540D22#540D22

#540D22 is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.7% C 0.102 H 9.2°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#540D22
RGBrgb(84, 13, 34)
HSLhsl(342, 73%, 19%)
HSVhsv(342, 85%, 33%)
CMYKcmyk(0%, 84.5%, 59.5%, 67.1%)
CIE-LABlab(16.93, 33.24, 6.41)
CIE-LCHlch(16.93, 33.85, 10.92°)
OKLaboklab(29.71% 0.101 0.0163)
OKLCHoklch(29.71% 0.102 9.2)
XYZxyz(4.0892, 2.2887, 1.7395)
Luminance0.0229 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D22 #0D543F
analogous
#540D46 #540D22 #541C0D
triadic
#540D22 #22540D #0D2254
tetradic
#540D22 #46540D #0D543F #1C0D54
square
#540D22 #46540D #0D543F #1C0D54
split-complementary
#540D22 #0D541C #0D4654
monochromatic
#1A040B #1F050D #540D22 #891537 #BE1D4D

Accessibility & contrast

On white

14.41
#540D22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#540D22 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D22
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D22#FFFFFF#000000##FFFFFF
##540D221.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202122
Deuteranopia (green-blind)
#322F20
Tritanopia (blue-blind)
#5C0016
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540d22;
/* rgb */ color: rgb(84, 13, 34);
/* oklch */ color: oklch(29.7% 0.102 9.2);
Tailwind
colors: {
  custom: {
    50: '#89545c',
    500: '#540d22',
    950: '#000000',
  },
}
SCSS
$custom: #540d22;
$custom-light: #89545c;
$custom-dark: #000000;
JSON
{
  "hex": "#540d22",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 34
  },
  "hsl": {
    "h": 342.254,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29709,
    "c": 0.10232,
    "h": 9.2
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#540D22
secondary
#2E8F72
accent
#F0B938
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #540D22

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

Preview Lab → · Contrast checker → · Palette generator →

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