#540D27#540D27

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

Color values

HEX#540D27
RGBrgb(84, 13, 39)
HSLhsl(338, 73%, 19%)
HSVhsv(338, 85%, 33%)
CMYKcmyk(0%, 84.5%, 53.6%, 67.1%)
CIE-LABlab(17.08, 33.70, 3.00)
CIE-LCHlch(17.08, 33.84, 5.09°)
OKLaboklab(29.87% 0.1032 0.008)
OKLCHoklch(29.87% 0.103 4.4)
XYZxyz(4.1667, 2.3197, 2.1474)
Luminance0.0232 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D27 #0D543A
analogous
#540D4B #540D27 #54170D
triadic
#540D27 #27540D #0D2754
tetradic
#540D27 #4B540D #0D543A #170D54
square
#540D27 #4B540D #0D543A #170D54
split-complementary
#540D27 #0D5417 #0D4B54
monochromatic
#1A040C #1F050E #540D27 #891540 #BE1D58

Accessibility & contrast

On white

14.35
#540D27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540D27
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D27#FFFFFF#000000##FFFFFF
##540D271.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2128
Deuteranopia (green-blind)
#322F25
Tritanopia (blue-blind)
#5C0018
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540d27;
/* rgb */ color: rgb(84, 13, 39);
/* oklch */ color: oklch(29.9% 0.103 4.4);
Tailwind
colors: {
  custom: {
    50: '#895460',
    500: '#540d27',
    950: '#000000',
  },
}
SCSS
$custom: #540d27;
$custom-light: #895460;
$custom-dark: #000000;
JSON
{
  "hex": "#540d27",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 39
  },
  "hsl": {
    "h": 338.028,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29866,
    "c": 0.10347,
    "h": 4.4
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#540D27
secondary
#2E8F6B
accent
#F0AD38
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #540D27

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

Preview Lab → · Contrast checker → · Palette generator →

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