#540D2F#540D2F

#540D2F is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.2% C 0.106 H 356.9°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#540D2F
RGBrgb(84, 13, 47)
HSLhsl(331, 73%, 19%)
HSVhsv(331, 85%, 33%)
CMYKcmyk(0%, 84.5%, 44%, 67.1%)
CIE-LABlab(17.36, 34.55, -2.35)
CIE-LCHlch(17.36, 34.63, 356.11°)
OKLaboklab(30.16% 0.1063 -0.0057)
OKLCHoklch(30.16% 0.106 356.9)
XYZxyz(4.3135, 2.3785, 2.9207)
Luminance0.0238 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D2F #0D5432
analogous
#540D53 #540D2F #540F0D
triadic
#540D2F #2F540D #0D2F54
tetradic
#540D2F #53540D #0D5432 #0F0D54
square
#540D2F #53540D #0D5432 #0F0D54
split-complementary
#540D2F #0D540F #0D5354
monochromatic
#1A040F #1F0511 #540D2F #89154D #BE1D6A

Accessibility & contrast

On white

14.23
#540D2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#540D2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D2F
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D2F#FFFFFF#000000##FFFFFF
##540D2F1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2230
Deuteranopia (green-blind)
#302F2D
Tritanopia (blue-blind)
#5C031C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540d2f;
/* rgb */ color: rgb(84, 13, 47);
/* oklch */ color: oklch(30.2% 0.106 356.9);
Tailwind
colors: {
  custom: {
    50: '#885467',
    500: '#540d2f',
    950: '#000000',
  },
}
SCSS
$custom: #540d2f;
$custom-light: #885467;
$custom-dark: #000000;
JSON
{
  "hex": "#540d2f",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 47
  },
  "hsl": {
    "h": 331.268,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.3016,
    "c": 0.10641,
    "h": 356.9
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

primary
#540D2F
secondary
#2E8F60
accent
#F09838
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0306
muted
#7D787A

Preview Lab

Preview with #540D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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