#540F2B#540F2B

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

Color values

HEX#540F2B
RGBrgb(84, 15, 43)
HSLhsl(336, 70%, 19%)
HSVhsv(336, 82%, 33%)
CMYKcmyk(0%, 82.1%, 48.8%, 67.1%)
CIE-LABlab(17.47, 33.40, 0.67)
CIE-LCHlch(17.47, 33.41, 1.16°)
OKLaboklab(30.19% 0.1025 0.0021)
OKLCHoklch(30.19% 0.103 1.2)
XYZxyz(4.2634, 2.4014, 2.5241)
Luminance0.0240 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F2B #0F5438
analogous
#540F4E #540F2B #54160F
triadic
#540F2B #2B540F #0F2B54
tetradic
#540F2B #4E540F #0F5438 #160F54
square
#540F2B #4E540F #0F5438 #160F54
split-complementary
#540F2B #0F5416 #0F4E54
monochromatic
#1A050D #200610 #540F2B #881846 #BC2260

Accessibility & contrast

On white

14.19
#540F2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F2B
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F2B#FFFFFF#000000##FFFFFF
##540F2B1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F222C
Deuteranopia (green-blind)
#313029
Tritanopia (blue-blind)
#5C031B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540f2b;
/* rgb */ color: rgb(84, 15, 43);
/* oklch */ color: oklch(30.2% 0.103 1.2);
Tailwind
colors: {
  custom: {
    50: '#885564',
    500: '#540f2b',
    950: '#000000',
  },
}
SCSS
$custom: #540f2b;
$custom-light: #885564;
$custom-dark: #000000;
JSON
{
  "hex": "#540f2b",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 43
  },
  "hsl": {
    "h": 335.652,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30192,
    "c": 0.10251,
    "h": 1.2
  },
  "luminance": 0.02401
}

Semantic roles & 50–950 ramp

primary
#540F2B
secondary
#318E68
accent
#EDA53B
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #540F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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