#540F2E#540F2E

#540F2E is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.3% C 0.104 H 358.3°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#540F2E
RGBrgb(84, 15, 46)
HSLhsl(333, 70%, 19%)
HSVhsv(333, 82%, 33%)
CMYKcmyk(0%, 82.1%, 45.2%, 67.1%)
CIE-LABlab(17.57, 33.73, -1.32)
CIE-LCHlch(17.57, 33.76, 357.76°)
OKLaboklab(30.3% 0.1036 -0.0031)
OKLCHoklch(30.3% 0.104 358.3)
XYZxyz(4.3204, 2.4243, 2.8247)
Luminance0.0242 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F2E #0F5435
analogous
#540F51 #540F2E #54120F
triadic
#540F2E #2E540F #0F2E54
tetradic
#540F2E #51540F #0F5435 #120F54
square
#540F2E #51540F #0F5435 #120F54
split-complementary
#540F2E #0F5412 #0F5154
monochromatic
#1A050E #200612 #540F2E #88184A #BC2267

Accessibility & contrast

On white

14.14
#540F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F2E
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F2E#FFFFFF#000000##FFFFFF
##540F2E1.0014.141.4814.14
#FFFFFF14.141.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E232F
Deuteranopia (green-blind)
#31302C
Tritanopia (blue-blind)
#5C051D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540f2e;
/* rgb */ color: rgb(84, 15, 46);
/* oklch */ color: oklch(30.3% 0.104 358.3);
Tailwind
colors: {
  custom: {
    50: '#885566',
    500: '#540f2e',
    950: '#000000',
  },
}
SCSS
$custom: #540f2e;
$custom-light: #885566;
$custom-dark: #000000;
JSON
{
  "hex": "#540f2e",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 46
  },
  "hsl": {
    "h": 333.043,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30304,
    "c": 0.10367,
    "h": 358.3
  },
  "luminance": 0.02424
}

Semantic roles & 50–950 ramp

primary
#540F2E
secondary
#318E64
accent
#ED9D3B
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0306
muted
#7D787A

Preview Lab

Preview with #540F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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