#540D25#540D25

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

Color values

HEX#540D25
RGBrgb(84, 13, 37)
HSLhsl(340, 73%, 19%)
HSVhsv(340, 85%, 33%)
CMYKcmyk(0%, 84.5%, 56%, 67.1%)
CIE-LABlab(17.02, 33.51, 4.36)
CIE-LCHlch(17.02, 33.79, 7.42°)
OKLaboklab(29.8% 0.1023 0.0113)
OKLCHoklch(29.8% 0.103 6.3)
XYZxyz(4.1344, 2.3068, 1.9775)
Luminance0.0231 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D25 #0D543C
analogous
#540D49 #540D25 #54190D
triadic
#540D25 #25540D #0D2554
tetradic
#540D25 #49540D #0D543C #190D54
square
#540D25 #49540D #0D543C #190D54
split-complementary
#540D25 #0D5419 #0D4954
monochromatic
#1A040C #1F050E #540D25 #89153C #BE1D54

Accessibility & contrast

On white

14.37
#540D25 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540D25
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D25#FFFFFF#000000##FFFFFF
##540D251.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #540d25;
/* rgb */ color: rgb(84, 13, 37);
/* oklch */ color: oklch(29.8% 0.103 6.3);
Tailwind
colors: {
  custom: {
    50: '#89545f',
    500: '#540d25',
    950: '#000000',
  },
}
SCSS
$custom: #540d25;
$custom-light: #89545f;
$custom-dark: #000000;
JSON
{
  "hex": "#540d25",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 37
  },
  "hsl": {
    "h": 339.718,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29801,
    "c": 0.10295,
    "h": 6.3
  },
  "luminance": 0.02306
}

Semantic roles & 50–950 ramp

primary
#540D25
secondary
#2E8F6E
accent
#F0B238
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #540D25

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

Preview Lab → · Contrast checker → · Palette generator →

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