#540F40#540F40

#540F40 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.1% C 0.114 H 342.4°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#540F40
RGBrgb(84, 15, 64)
HSLhsl(317, 70%, 19%)
HSVhsv(317, 82%, 33%)
CMYKcmyk(0%, 82.1%, 23.8%, 67.1%)
CIE-LABlab(18.35, 36.14, -12.87)
CIE-LCHlch(18.35, 38.36, 340.40°)
OKLaboklab(31.13% 0.1087 -0.0345)
OKLCHoklch(31.13% 0.114 342.4)
XYZxyz(4.7526, 2.5971, 5.1005)
Luminance0.0260 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F40 #0F5423
analogous
#460F54 #540F40 #540F1E
triadic
#540F40 #40540F #0F4054
tetradic
#540F40 #54460F #0F5423 #0F1E54
square
#540F40 #54460F #0F5423 #0F1E54
split-complementary
#540F40 #1E540F #0F5446
monochromatic
#1A0514 #200618 #540F40 #881868 #BC228F

Accessibility & contrast

On white

13.82
#540F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#540F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F40
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F40#FFFFFF#000000##FFFFFF
##540F401.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162641
Deuteranopia (green-blind)
#2C313E
Tritanopia (blue-blind)
#5A1026
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540f40;
/* rgb */ color: rgb(84, 15, 64);
/* oklch */ color: oklch(31.1% 0.114 342.4);
Tailwind
colors: {
  custom: {
    50: '#875675',
    500: '#540f40',
    950: '#000000',
  },
}
SCSS
$custom: #540f40;
$custom-light: #875675;
$custom-dark: #000000;
JSON
{
  "hex": "#540f40",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 317.391,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31127,
    "c": 0.11404,
    "h": 342.4
  },
  "luminance": 0.02597
}

Semantic roles & 50–950 ramp

primary
#540F40
secondary
#318E4C
accent
#ED6F3B
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #540F40

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

Preview Lab → · Contrast checker → · Palette generator →

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