#540F22#540F22

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

Color values

HEX#540F22
RGBrgb(84, 15, 34)
HSLhsl(343, 70%, 19%)
HSVhsv(343, 82%, 33%)
CMYKcmyk(0%, 82.1%, 59.5%, 67.1%)
CIE-LABlab(17.19, 32.52, 6.77)
CIE-LCHlch(17.19, 33.22, 11.76°)
OKLaboklab(29.9% 0.0987 0.0171)
OKLCHoklch(29.9% 0.1 9.9)
XYZxyz(4.1161, 2.3425, 1.7485)
Luminance0.0234 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F22 #0F5441
analogous
#540F45 #540F22 #541F0F
triadic
#540F22 #22540F #0F2254
tetradic
#540F22 #45540F #0F5441 #1F0F54
square
#540F22 #45540F #0F5441 #1F0F54
split-complementary
#540F22 #0F541F #0F4554
monochromatic
#1A050B #20060D #540F22 #881837 #BC224C

Accessibility & contrast

On white

14.30
#540F22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F22
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F22#FFFFFF#000000##FFFFFF
##540F221.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #540f22;
/* rgb */ color: rgb(84, 15, 34);
/* oklch */ color: oklch(29.9% 0.100 9.9);
Tailwind
colors: {
  custom: {
    50: '#89555c',
    500: '#540f22',
    950: '#000000',
  },
}
SCSS
$custom: #540f22;
$custom-light: #89555c;
$custom-dark: #000000;
JSON
{
  "hex": "#540f22",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 34
  },
  "hsl": {
    "h": 343.478,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29898,
    "c": 0.10017,
    "h": 9.9
  },
  "luminance": 0.02342
}

Semantic roles & 50–950 ramp

primary
#540F22
secondary
#318E74
accent
#EDBC3B
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #540F22

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

Preview Lab → · Contrast checker → · Palette generator →

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