#540D38#540D38

#540D38 is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.6% C 0.111 H 348.8°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#540D38
RGBrgb(84, 13, 56)
HSLhsl(324, 73%, 19%)
HSVhsv(324, 85%, 33%)
CMYKcmyk(0%, 84.5%, 33.3%, 67.1%)
CIE-LABlab(17.73, 35.68, -8.20)
CIE-LCHlch(17.73, 36.61, 347.05°)
OKLaboklab(30.55% 0.109 -0.0215)
OKLCHoklch(30.55% 0.111 348.8)
XYZxyz(4.5141, 2.4587, 3.9775)
Luminance0.0246 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D38 #0D5429
analogous
#4D0D54 #540D38 #540D15
triadic
#540D38 #38540D #0D3854
tetradic
#540D38 #544D0D #0D5429 #0D1554
square
#540D38 #544D0D #0D5429 #0D1554
split-complementary
#540D38 #15540D #0D544D
monochromatic
#1A0412 #1F0515 #540D38 #89155B #BE1D7F

Accessibility & contrast

On white

14.08
#540D38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#540D38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D38
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D38#FFFFFF#000000##FFFFFF
##540D381.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192439
Deuteranopia (green-blind)
#2E3036
Tritanopia (blue-blind)
#5B0921
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540d38;
/* rgb */ color: rgb(84, 13, 56);
/* oklch */ color: oklch(30.6% 0.111 348.8);
Tailwind
colors: {
  custom: {
    50: '#87556e',
    500: '#540d38',
    950: '#000000',
  },
}
SCSS
$custom: #540d38;
$custom-light: #87556e;
$custom-dark: #000000;
JSON
{
  "hex": "#540d38",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 56
  },
  "hsl": {
    "h": 323.662,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30552,
    "c": 0.11114,
    "h": 348.8
  },
  "luminance": 0.02458
}

Semantic roles & 50–950 ramp

primary
#540D38
secondary
#2E8F54
accent
#F08038
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0307
muted
#7D787A

Preview Lab

Preview with #540D38

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

Preview Lab → · Contrast checker → · Palette generator →

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