#540D3E#540D3E

#540D3E is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.8% C 0.115 H 343.8°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#540D3E
RGBrgb(84, 13, 62)
HSLhsl(319, 73%, 19%)
HSVhsv(319, 85%, 33%)
CMYKcmyk(0%, 84.5%, 26.2%, 67.1%)
CIE-LABlab(18.01, 36.52, -11.99)
CIE-LCHlch(18.01, 38.44, 341.82°)
OKLaboklab(30.85% 0.1104 -0.0321)
OKLCHoklch(30.85% 0.115 343.8)
XYZxyz(4.6698, 2.5210, 4.7972)
Luminance0.0252 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D3E #0D5423
analogous
#470D54 #540D3E #540D1A
triadic
#540D3E #3E540D #0D3E54
tetradic
#540D3E #54470D #0D5423 #0D1A54
square
#540D3E #54470D #0D5423 #0D1A54
split-complementary
#540D3E #1A540D #0D5447
monochromatic
#1A0414 #1F0517 #540D3E #891565 #BE1D8C

Accessibility & contrast

On white

13.96
#540D3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#540D3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D3E
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D3E#FFFFFF#000000##FFFFFF
##540D3E1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16253F
Deuteranopia (green-blind)
#2C303C
Tritanopia (blue-blind)
#5A0D24
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540d3e;
/* rgb */ color: rgb(84, 13, 62);
/* oklch */ color: oklch(30.8% 0.115 343.8);
Tailwind
colors: {
  custom: {
    50: '#875573',
    500: '#540d3e',
    950: '#000000',
  },
}
SCSS
$custom: #540d3e;
$custom-light: #875573;
$custom-dark: #000000;
JSON
{
  "hex": "#540d3e",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 62
  },
  "hsl": {
    "h": 318.592,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30849,
    "c": 0.11497,
    "h": 343.8
  },
  "luminance": 0.0252
}

Semantic roles & 50–950 ramp

primary
#540D3E
secondary
#2E8F4C
accent
#F07138
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #540D3E

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

Preview Lab → · Contrast checker → · Palette generator →

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