#540E38#540E38

#540E38 is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.6% C 0.110 H 349.0°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#540E38
RGBrgb(84, 14, 56)
HSLhsl(324, 71%, 19%)
HSVhsv(324, 83%, 33%)
CMYKcmyk(0%, 83.3%, 33.3%, 67.1%)
CIE-LABlab(17.85, 35.34, -8.02)
CIE-LCHlch(17.85, 36.24, 347.21°)
OKLaboklab(30.64% 0.108 -0.021)
OKLCHoklch(30.64% 0.11 349)
XYZxyz(4.5272, 2.4849, 3.9818)
Luminance0.0248 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E38 #0E542A
analogous
#4D0E54 #540E38 #540E15
triadic
#540E38 #38540E #0E3854
tetradic
#540E38 #544D0E #0E542A #0E1554
square
#540E38 #544D0E #0E542A #0E1554
split-complementary
#540E38 #15540E #0E544D
monochromatic
#1A0411 #200515 #540E38 #88175B #BD1F7E

Accessibility & contrast

On white

14.03
#540E38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#540E38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540E38
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E38#FFFFFF#000000##FFFFFF
##540E381.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192439
Deuteranopia (green-blind)
#2E3036
Tritanopia (blue-blind)
#5B0A21
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540e38;
/* rgb */ color: rgb(84, 14, 56);
/* oklch */ color: oklch(30.6% 0.110 349.0);
Tailwind
colors: {
  custom: {
    50: '#87556e',
    500: '#540e38',
    950: '#000000',
  },
}
SCSS
$custom: #540e38;
$custom-light: #87556e;
$custom-dark: #000000;
JSON
{
  "hex": "#540e38",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 56
  },
  "hsl": {
    "h": 324,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.30639,
    "c": 0.10999,
    "h": 349
  },
  "luminance": 0.02484
}

Semantic roles & 50–950 ramp

primary
#540E38
secondary
#2F8E55
accent
#EE823A
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0307
muted
#7D787A

Preview Lab

Preview with #540E38

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

Preview Lab → · Contrast checker → · Palette generator →

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