#540D28#540D28

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

Color values

HEX#540D28
RGBrgb(84, 13, 40)
HSLhsl(337, 73%, 19%)
HSVhsv(337, 85%, 33%)
CMYKcmyk(0%, 84.5%, 52.4%, 67.1%)
CIE-LABlab(17.11, 33.80, 2.33)
CIE-LCHlch(17.11, 33.88, 3.94°)
OKLaboklab(29.9% 0.1036 0.0063)
OKLCHoklch(29.9% 0.104 3.5)
XYZxyz(4.1834, 2.3264, 2.2358)
Luminance0.0233 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D28 #0D5439
analogous
#540D4C #540D28 #54160D
triadic
#540D28 #28540D #0D2854
tetradic
#540D28 #4C540D #0D5439 #160D54
square
#540D28 #4C540D #0D5439 #160D54
split-complementary
#540D28 #0D5416 #0D4C54
monochromatic
#1A040D #1F050F #540D28 #891541 #BE1D5A

Accessibility & contrast

On white

14.33
#540D28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540D28
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D28#FFFFFF#000000##FFFFFF
##540D281.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2129
Deuteranopia (green-blind)
#312F26
Tritanopia (blue-blind)
#5C0019
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540d28;
/* rgb */ color: rgb(84, 13, 40);
/* oklch */ color: oklch(29.9% 0.104 3.5);
Tailwind
colors: {
  custom: {
    50: '#885461',
    500: '#540d28',
    950: '#000000',
  },
}
SCSS
$custom: #540d28;
$custom-light: #885461;
$custom-dark: #000000;
JSON
{
  "hex": "#540d28",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 40
  },
  "hsl": {
    "h": 337.183,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.299,
    "c": 0.10377,
    "h": 3.5
  },
  "luminance": 0.02326
}

Semantic roles & 50–950 ramp

primary
#540D28
secondary
#2E8F6A
accent
#F0AA38
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #540D28

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

Preview Lab → · Contrast checker → · Palette generator →

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