#540F38#540F38

#540F38 is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.7% C 0.109 H 349.1°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#540F38
RGBrgb(84, 15, 56)
HSLhsl(324, 70%, 19%)
HSVhsv(324, 82%, 33%)
CMYKcmyk(0%, 82.1%, 33.3%, 67.1%)
CIE-LABlab(17.98, 34.99, -7.83)
CIE-LCHlch(17.98, 35.85, 347.38°)
OKLaboklab(30.73% 0.1069 -0.0205)
OKLCHoklch(30.73% 0.109 349.1)
XYZxyz(4.5410, 2.5125, 3.9864)
Luminance0.0251 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F38 #0F542B
analogous
#4E0F54 #540F38 #540F16
triadic
#540F38 #38540F #0F3854
tetradic
#540F38 #544E0F #0F542B #0F1654
square
#540F38 #544E0F #0F542B #0F1654
split-complementary
#540F38 #16540F #0F544E
monochromatic
#1A0511 #200615 #540F38 #88185B #BC227D

Accessibility & contrast

On white

13.98
#540F38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F38
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F38#FFFFFF#000000##FFFFFF
##540F381.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2439
Deuteranopia (green-blind)
#2E3036
Tritanopia (blue-blind)
#5B0B22
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540f38;
/* rgb */ color: rgb(84, 15, 56);
/* oklch */ color: oklch(30.7% 0.109 349.1);
Tailwind
colors: {
  custom: {
    50: '#87556e',
    500: '#540f38',
    950: '#000000',
  },
}
SCSS
$custom: #540f38;
$custom-light: #87556e;
$custom-dark: #000000;
JSON
{
  "hex": "#540f38",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 56
  },
  "hsl": {
    "h": 324.348,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.3073,
    "c": 0.1088,
    "h": 349.1
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#540F38
secondary
#318E57
accent
#ED833B
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0307
muted
#7D787A

Preview Lab

Preview with #540F38

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

Preview Lab → · Contrast checker → · Palette generator →

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