#540F29#540F29

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

Color values

HEX#540F29
RGBrgb(84, 15, 41)
HSLhsl(337, 70%, 19%)
HSVhsv(337, 82%, 33%)
CMYKcmyk(0%, 82.1%, 51.2%, 67.1%)
CIE-LABlab(17.40, 33.19, 2.02)
CIE-LCHlch(17.40, 33.25, 3.48°)
OKLaboklab(30.12% 0.1017 0.0055)
OKLCHoklch(30.12% 0.102 3.1)
XYZxyz(4.2276, 2.3871, 2.3355)
Luminance0.0239 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F29 #0F543A
analogous
#540F4C #540F29 #54170F
triadic
#540F29 #29540F #0F2954
tetradic
#540F29 #4C540F #0F543A #170F54
square
#540F29 #4C540F #0F543A #170F54
split-complementary
#540F29 #0F5417 #0F4C54
monochromatic
#1A050D #200610 #540F29 #881842 #BC225C

Accessibility & contrast

On white

14.21
#540F29 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F29
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F29#FFFFFF#000000##FFFFFF
##540F291.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F222A
Deuteranopia (green-blind)
#323027
Tritanopia (blue-blind)
#5C031A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540f29;
/* rgb */ color: rgb(84, 15, 41);
/* oklch */ color: oklch(30.1% 0.102 3.1);
Tailwind
colors: {
  custom: {
    50: '#885562',
    500: '#540f29',
    950: '#000000',
  },
}
SCSS
$custom: #540f29;
$custom-light: #885562;
$custom-dark: #000000;
JSON
{
  "hex": "#540f29",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 41
  },
  "hsl": {
    "h": 337.391,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30121,
    "c": 0.10184,
    "h": 3.1
  },
  "luminance": 0.02387
}

Semantic roles & 50–950 ramp

primary
#540F29
secondary
#318E6B
accent
#EDAA3B
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #540F29

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

Preview Lab → · Contrast checker → · Palette generator →

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