#540F24#540F24

#540F24 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.0% C 0.101 H 7.9°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#540F24
RGBrgb(84, 15, 36)
HSLhsl(342, 70%, 19%)
HSVhsv(342, 82%, 33%)
CMYKcmyk(0%, 82.1%, 57.1%, 67.1%)
CIE-LABlab(17.25, 32.70, 5.40)
CIE-LCHlch(17.25, 33.14, 9.38°)
OKLaboklab(29.96% 0.0996 0.0139)
OKLCHoklch(29.96% 0.101 7.9)
XYZxyz(4.1458, 2.3544, 1.9049)
Luminance0.0235 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F24 #0F543F
analogous
#540F47 #540F24 #541D0F
triadic
#540F24 #24540F #0F2454
tetradic
#540F24 #47540F #0F543F #1D0F54
square
#540F24 #47540F #0F543F #1D0F54
split-complementary
#540F24 #0F541D #0F4754
monochromatic
#1A050B #20060E #540F24 #88183A #BC2251

Accessibility & contrast

On white

14.28
#540F24 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#540F24 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F24
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F24#FFFFFF#000000##FFFFFF
##540F241.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212224
Deuteranopia (green-blind)
#332F22
Tritanopia (blue-blind)
#5C0018
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540f24;
/* rgb */ color: rgb(84, 15, 36);
/* oklch */ color: oklch(30.0% 0.101 7.9);
Tailwind
colors: {
  custom: {
    50: '#89555e',
    500: '#540f24',
    950: '#000000',
  },
}
SCSS
$custom: #540f24;
$custom-light: #89555e;
$custom-dark: #000000;
JSON
{
  "hex": "#540f24",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 36
  },
  "hsl": {
    "h": 341.739,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29958,
    "c": 0.10053,
    "h": 7.9
  },
  "luminance": 0.02354
}

Semantic roles & 50–950 ramp

primary
#540F24
secondary
#318E72
accent
#EDB73B
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #540F24

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

Preview Lab → · Contrast checker → · Palette generator →

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