#540F2C#540F2C

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

Color values

HEX#540F2C
RGBrgb(84, 15, 44)
HSLhsl(335, 70%, 19%)
HSVhsv(335, 82%, 33%)
CMYKcmyk(0%, 82.1%, 47.6%, 67.1%)
CIE-LABlab(17.50, 33.51, 0.01)
CIE-LCHlch(17.50, 33.51, 0.01°)
OKLaboklab(30.23% 0.1029 0.0004)
OKLCHoklch(30.23% 0.103 0.2)
XYZxyz(4.2819, 2.4089, 2.6219)
Luminance0.0241 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F2C #0F5437
analogous
#540F4F #540F2C #54150F
triadic
#540F2C #2C540F #0F2C54
tetradic
#540F2C #4F540F #0F5437 #150F54
square
#540F2C #4F540F #0F5437 #150F54
split-complementary
#540F2C #0F5415 #0F4F54
monochromatic
#1A050E #200611 #540F2C #881847 #BC2262

Accessibility & contrast

On white

14.17
#540F2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F2C
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F2C#FFFFFF#000000##FFFFFF
##540F2C1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F232D
Deuteranopia (green-blind)
#31302A
Tritanopia (blue-blind)
#5C041C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540f2c;
/* rgb */ color: rgb(84, 15, 44);
/* oklch */ color: oklch(30.2% 0.103 0.2);
Tailwind
colors: {
  custom: {
    50: '#885564',
    500: '#540f2c',
    950: '#000000',
  },
}
SCSS
$custom: #540f2c;
$custom-light: #885564;
$custom-dark: #000000;
JSON
{
  "hex": "#540f2c",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 44
  },
  "hsl": {
    "h": 334.783,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30228,
    "c": 0.10288,
    "h": 0.2
  },
  "luminance": 0.02408
}

Semantic roles & 50–950 ramp

primary
#540F2C
secondary
#318E67
accent
#EDA23B
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0305
muted
#7D787A

Preview Lab

Preview with #540F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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