#540F39#540F39

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

Color values

HEX#540F39
RGBrgb(84, 15, 57)
HSLhsl(323, 70%, 19%)
HSVhsv(323, 82%, 33%)
CMYKcmyk(0%, 82.1%, 32.1%, 67.1%)
CIE-LABlab(18.02, 35.12, -8.47)
CIE-LCHlch(18.02, 36.13, 346.44°)
OKLaboklab(30.78% 0.1071 -0.0223)
OKLCHoklch(30.78% 0.109 348.3)
XYZxyz(4.5657, 2.5224, 4.1165)
Luminance0.0252 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F39 #0F542A
analogous
#4D0F54 #540F39 #540F17
triadic
#540F39 #39540F #0F3954
tetradic
#540F39 #544D0F #0F542A #0F1754
square
#540F39 #544D0F #0F542A #0F1754
split-complementary
#540F39 #17540F #0F544D
monochromatic
#1A0512 #200616 #540F39 #88185C #BC227F

Accessibility & contrast

On white

13.96
#540F39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F39
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F39#FFFFFF#000000##FFFFFF
##540F391.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A243A
Deuteranopia (green-blind)
#2E3037
Tritanopia (blue-blind)
#5B0C22
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540f39;
/* rgb */ color: rgb(84, 15, 57);
/* oklch */ color: oklch(30.8% 0.109 348.3);
Tailwind
colors: {
  custom: {
    50: '#87556f',
    500: '#540f39',
    950: '#000000',
  },
}
SCSS
$custom: #540f39;
$custom-light: #87556f;
$custom-dark: #000000;
JSON
{
  "hex": "#540f39",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 57
  },
  "hsl": {
    "h": 323.478,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30777,
    "c": 0.10941,
    "h": 348.3
  },
  "luminance": 0.02522
}

Semantic roles & 50–950 ramp

primary
#540F39
secondary
#318E55
accent
#ED813B
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0307
muted
#7D787A

Preview Lab

Preview with #540F39

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

Preview Lab → · Contrast checker → · Palette generator →

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