#540F3A#540F3A

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

Color values

HEX#540F3A
RGBrgb(84, 15, 58)
HSLhsl(323, 70%, 19%)
HSVhsv(323, 82%, 33%)
CMYKcmyk(0%, 82.1%, 31%, 67.1%)
CIE-LABlab(18.07, 35.26, -9.11)
CIE-LCHlch(18.07, 36.42, 345.52°)
OKLaboklab(30.83% 0.1074 -0.024)
OKLCHoklch(30.83% 0.11 347.4)
XYZxyz(4.5909, 2.5325, 4.2492)
Luminance0.0253 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F3A #0F5429
analogous
#4C0F54 #540F3A #540F17
triadic
#540F3A #3A540F #0F3A54
tetradic
#540F3A #544C0F #0F5429 #0F1754
square
#540F3A #544C0F #0F5429 #0F1754
split-complementary
#540F3A #17540F #0F544C
monochromatic
#1A0512 #200616 #540F3A #88185E #BC2282

Accessibility & contrast

On white

13.94
#540F3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#540F3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F3A
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F3A#FFFFFF#000000##FFFFFF
##540F3A1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19253B
Deuteranopia (green-blind)
#2E3038
Tritanopia (blue-blind)
#5A0C23
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540f3a;
/* rgb */ color: rgb(84, 15, 58);
/* oklch */ color: oklch(30.8% 0.110 347.4);
Tailwind
colors: {
  custom: {
    50: '#875670',
    500: '#540f3a',
    950: '#000000',
  },
}
SCSS
$custom: #540f3a;
$custom-light: #875670;
$custom-dark: #000000;
JSON
{
  "hex": "#540f3a",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 58
  },
  "hsl": {
    "h": 322.609,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30825,
    "c": 0.11004,
    "h": 347.4
  },
  "luminance": 0.02532
}

Semantic roles & 50–950 ramp

primary
#540F3A
secondary
#318E54
accent
#ED7E3B
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0307
muted
#7D787A

Preview Lab

Preview with #540F3A

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

Preview Lab → · Contrast checker → · Palette generator →

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