#540F2A#540F2A

#540F2A is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.2% C 0.102 H 2.1°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#540F2A
RGBrgb(84, 15, 42)
HSLhsl(337, 70%, 19%)
HSVhsv(337, 82%, 33%)
CMYKcmyk(0%, 82.1%, 50%, 67.1%)
CIE-LABlab(17.43, 33.29, 1.35)
CIE-LCHlch(17.43, 33.32, 2.31°)
OKLaboklab(30.16% 0.1021 0.0038)
OKLCHoklch(30.16% 0.102 2.1)
XYZxyz(4.2452, 2.3942, 2.4286)
Luminance0.0239 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F2A #0F5439
analogous
#540F4D #540F2A #54170F
triadic
#540F2A #2A540F #0F2A54
tetradic
#540F2A #4D540F #0F5439 #170F54
square
#540F2A #4D540F #0F5439 #170F54
split-complementary
#540F2A #0F5417 #0F4D54
monochromatic
#1A050D #200610 #540F2A #881844 #BC225E

Accessibility & contrast

On white

14.20
#540F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#540F2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F2A
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F2A#FFFFFF#000000##FFFFFF
##540F2A1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F222B
Deuteranopia (green-blind)
#323028
Tritanopia (blue-blind)
#5C031B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540f2a;
/* rgb */ color: rgb(84, 15, 42);
/* oklch */ color: oklch(30.2% 0.102 2.1);
Tailwind
colors: {
  custom: {
    50: '#885563',
    500: '#540f2a',
    950: '#000000',
  },
}
SCSS
$custom: #540f2a;
$custom-light: #885563;
$custom-dark: #000000;
JSON
{
  "hex": "#540f2a",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 42
  },
  "hsl": {
    "h": 336.522,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30156,
    "c": 0.10216,
    "h": 2.1
  },
  "luminance": 0.02394
}

Semantic roles & 50–950 ramp

primary
#540F2A
secondary
#318E6A
accent
#EDA73B
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #540F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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