#540C24#540C24

#540C24 is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.7% C 0.104 H 7.0°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#540C24
RGBrgb(84, 12, 36)
HSLhsl(340, 75%, 19%)
HSVhsv(340, 86%, 33%)
CMYKcmyk(0%, 85.7%, 57.1%, 67.1%)
CIE-LABlab(16.87, 33.76, 4.88)
CIE-LCHlch(16.87, 34.11, 8.22°)
OKLaboklab(29.68% 0.103 0.0126)
OKLCHoklch(29.68% 0.104 7)
XYZxyz(4.1064, 2.2757, 1.8917)
Luminance0.0227 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540C24 #0C543C
analogous
#540C48 #540C24 #54180C
triadic
#540C24 #24540C #0C2454
tetradic
#540C24 #48540C #0C543C #180C54
square
#540C24 #48540C #0C543C #180C54
split-complementary
#540C24 #0C5418 #0C4854
monochromatic
#1B040B #1E040D #540C24 #8A143B #BF1B52

Accessibility & contrast

On white

14.43
#540C24 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#540C24 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540C24
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540C24#FFFFFF#000000##FFFFFF
##540C241.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2024
Deuteranopia (green-blind)
#322F22
Tritanopia (blue-blind)
#5C0017
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540c24;
/* rgb */ color: rgb(84, 12, 36);
/* oklch */ color: oklch(29.7% 0.104 7.0);
Tailwind
colors: {
  custom: {
    50: '#89545e',
    500: '#540c24',
    950: '#000000',
  },
}
SCSS
$custom: #540c24;
$custom-light: #89545e;
$custom-dark: #000000;
JSON
{
  "hex": "#540c24",
  "rgb": {
    "r": 84,
    "g": 12,
    "b": 36
  },
  "hsl": {
    "h": 340,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29682,
    "c": 0.10375,
    "h": 7
  },
  "luminance": 0.02275
}

Semantic roles & 50–950 ramp

primary
#540C24
secondary
#2D8F6E
accent
#F2B336
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #540C24

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

Preview Lab → · Contrast checker → · Palette generator →

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