#540F37#540F37

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

Color values

HEX#540F37
RGBrgb(84, 15, 55)
HSLhsl(325, 70%, 19%)
HSVhsv(325, 82%, 33%)
CMYKcmyk(0%, 82.1%, 34.5%, 67.1%)
CIE-LABlab(17.93, 34.85, -7.19)
CIE-LCHlch(17.93, 35.59, 348.34°)
OKLaboklab(30.68% 0.1066 -0.0188)
OKLCHoklch(30.68% 0.108 350)
XYZxyz(4.5168, 2.5028, 3.8589)
Luminance0.0250 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F37 #0F542C
analogous
#4F0F54 #540F37 #540F15
triadic
#540F37 #37540F #0F3754
tetradic
#540F37 #544F0F #0F542C #0F1554
square
#540F37 #544F0F #0F542C #0F1554
split-complementary
#540F37 #15540F #0F544F
monochromatic
#1A0511 #200615 #540F37 #881859 #BC227B

Accessibility & contrast

On white

14.00
#540F37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F37
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F37#FFFFFF#000000##FFFFFF
##540F371.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2438
Deuteranopia (green-blind)
#2F3035
Tritanopia (blue-blind)
#5B0A21
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540f37;
/* rgb */ color: rgb(84, 15, 55);
/* oklch */ color: oklch(30.7% 0.108 350.0);
Tailwind
colors: {
  custom: {
    50: '#87556d',
    500: '#540f37',
    950: '#000000',
  },
}
SCSS
$custom: #540f37;
$custom-light: #87556d;
$custom-dark: #000000;
JSON
{
  "hex": "#540f37",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 55
  },
  "hsl": {
    "h": 325.217,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30684,
    "c": 0.10822,
    "h": 350
  },
  "luminance": 0.02502
}

Semantic roles & 50–950 ramp

primary
#540F37
secondary
#318E58
accent
#ED863B
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0307
muted
#7D787A

Preview Lab

Preview with #540F37

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

Preview Lab → · Contrast checker → · Palette generator →

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