#540F2F#540F2F

#540F2F is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.3% C 0.104 H 357.4°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#540F2F
RGBrgb(84, 15, 47)
HSLhsl(332, 70%, 19%)
HSVhsv(332, 82%, 33%)
CMYKcmyk(0%, 82.1%, 44%, 67.1%)
CIE-LABlab(17.61, 33.85, -1.98)
CIE-LCHlch(17.61, 33.91, 356.65°)
OKLaboklab(30.34% 0.104 -0.0048)
OKLCHoklch(30.34% 0.104 357.4)
XYZxyz(4.3404, 2.4323, 2.9297)
Luminance0.0243 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F2F #0F5434
analogous
#540F52 #540F2F #54120F
triadic
#540F2F #2F540F #0F2F54
tetradic
#540F2F #52540F #0F5434 #120F54
square
#540F2F #52540F #0F5434 #120F54
split-complementary
#540F2F #0F5412 #0F5254
monochromatic
#1A050F #200612 #540F2F #88184C #BC2269

Accessibility & contrast

On white

14.13
#540F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#540F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F2F
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F2F#FFFFFF#000000##FFFFFF
##540F2F1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2330
Deuteranopia (green-blind)
#31302D
Tritanopia (blue-blind)
#5C061D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540f2f;
/* rgb */ color: rgb(84, 15, 47);
/* oklch */ color: oklch(30.3% 0.104 357.4);
Tailwind
colors: {
  custom: {
    50: '#885567',
    500: '#540f2f',
    950: '#000000',
  },
}
SCSS
$custom: #540f2f;
$custom-light: #885567;
$custom-dark: #000000;
JSON
{
  "hex": "#540f2f",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 47
  },
  "hsl": {
    "h": 332.174,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30343,
    "c": 0.10411,
    "h": 357.4
  },
  "luminance": 0.02432
}

Semantic roles & 50–950 ramp

primary
#540F2F
secondary
#318E63
accent
#ED9A3B
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0306
muted
#7D787A

Preview Lab

Preview with #540F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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