#540F23#540F23

#540F23 is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.9% C 0.100 H 8.9°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#540F23
RGBrgb(84, 15, 35)
HSLhsl(343, 70%, 19%)
HSVhsv(343, 82%, 33%)
CMYKcmyk(0%, 82.1%, 58.3%, 67.1%)
CIE-LABlab(17.22, 32.61, 6.08)
CIE-LCHlch(17.22, 33.17, 10.57°)
OKLaboklab(29.93% 0.0991 0.0155)
OKLCHoklch(29.93% 0.1 8.9)
XYZxyz(4.1307, 2.3484, 1.8256)
Luminance0.0235 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F23 #0F5440
analogous
#540F46 #540F23 #541E0F
triadic
#540F23 #23540F #0F2354
tetradic
#540F23 #46540F #0F5440 #1E0F54
square
#540F23 #46540F #0F5440 #1E0F54
split-complementary
#540F23 #0F541E #0F4654
monochromatic
#1A050B #20060D #540F23 #881839 #BC224E

Accessibility & contrast

On white

14.29
#540F23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F23
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F23#FFFFFF#000000##FFFFFF
##540F231.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212123
Deuteranopia (green-blind)
#332F21
Tritanopia (blue-blind)
#5C0017
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540f23;
/* rgb */ color: rgb(84, 15, 35);
/* oklch */ color: oklch(29.9% 0.100 8.9);
Tailwind
colors: {
  custom: {
    50: '#89555d',
    500: '#540f23',
    950: '#000000',
  },
}
SCSS
$custom: #540f23;
$custom-light: #89555d;
$custom-dark: #000000;
JSON
{
  "hex": "#540f23",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 35
  },
  "hsl": {
    "h": 342.609,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29928,
    "c": 0.10035,
    "h": 8.9
  },
  "luminance": 0.02348
}

Semantic roles & 50–950 ramp

primary
#540F23
secondary
#318E73
accent
#EDB93B
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #540F23

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

Preview Lab → · Contrast checker → · Palette generator →

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