#540F3B#540F3B

#540F3B is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.9% C 0.111 H 346.5°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#540F3B
RGBrgb(84, 15, 59)
HSLhsl(322, 70%, 19%)
HSVhsv(322, 82%, 33%)
CMYKcmyk(0%, 82.1%, 29.8%, 67.1%)
CIE-LABlab(18.11, 35.40, -9.74)
CIE-LCHlch(18.11, 36.72, 344.62°)
OKLaboklab(30.87% 0.1076 -0.0258)
OKLCHoklch(30.87% 0.111 346.5)
XYZxyz(4.6166, 2.5427, 4.3845)
Luminance0.0254 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F3B #0F5428
analogous
#4B0F54 #540F3B #540F19
triadic
#540F3B #3B540F #0F3B54
tetradic
#540F3B #544B0F #0F5428 #0F1954
square
#540F3B #544B0F #0F5428 #0F1954
split-complementary
#540F3B #19540F #0F544B
monochromatic
#1A0512 #200617 #540F3B #88185F #BC2284

Accessibility & contrast

On white

13.92
#540F3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F3B
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F3B#FFFFFF#000000##FFFFFF
##540F3B1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19253C
Deuteranopia (green-blind)
#2D3039
Tritanopia (blue-blind)
#5A0D23
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540f3b;
/* rgb */ color: rgb(84, 15, 59);
/* oklch */ color: oklch(30.9% 0.111 346.5);
Tailwind
colors: {
  custom: {
    50: '#875671',
    500: '#540f3b',
    950: '#000000',
  },
}
SCSS
$custom: #540f3b;
$custom-light: #875671;
$custom-dark: #000000;
JSON
{
  "hex": "#540f3b",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 59
  },
  "hsl": {
    "h": 321.739,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30873,
    "c": 0.11066,
    "h": 346.5
  },
  "luminance": 0.02542
}

Semantic roles & 50–950 ramp

primary
#540F3B
secondary
#318E53
accent
#ED7C3B
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0307
muted
#7D787A

Preview Lab

Preview with #540F3B

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

Preview Lab → · Contrast checker → · Palette generator →

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