#540F26#540F26

#540F26 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.0% C 0.101 H 6.0°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#540F26
RGBrgb(84, 15, 38)
HSLhsl(340, 70%, 19%)
HSVhsv(340, 82%, 33%)
CMYKcmyk(0%, 82.1%, 54.8%, 67.1%)
CIE-LABlab(17.31, 32.89, 4.04)
CIE-LCHlch(17.31, 33.14, 7.01°)
OKLaboklab(30.02% 0.1004 0.0106)
OKLCHoklch(30.02% 0.101 6)
XYZxyz(4.1772, 2.3670, 2.0703)
Luminance0.0237 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F26 #0F543D
analogous
#540F49 #540F26 #541B0F
triadic
#540F26 #26540F #0F2654
tetradic
#540F26 #49540F #0F543D #1B0F54
square
#540F26 #49540F #0F543D #1B0F54
split-complementary
#540F26 #0F541B #0F4954
monochromatic
#1A050C #20060F #540F26 #88183D #BC2255

Accessibility & contrast

On white

14.25
#540F26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#540F26 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F26
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F26#FFFFFF#000000##FFFFFF
##540F261.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202226
Deuteranopia (green-blind)
#322F24
Tritanopia (blue-blind)
#5C0119
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540f26;
/* rgb */ color: rgb(84, 15, 38);
/* oklch */ color: oklch(30.0% 0.101 6.0);
Tailwind
colors: {
  custom: {
    50: '#895560',
    500: '#540f26',
    950: '#000000',
  },
}
SCSS
$custom: #540f26;
$custom-light: #895560;
$custom-dark: #000000;
JSON
{
  "hex": "#540f26",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 38
  },
  "hsl": {
    "h": 340,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30021,
    "c": 0.10099,
    "h": 6
  },
  "luminance": 0.02366
}

Semantic roles & 50–950 ramp

primary
#540F26
secondary
#318E6F
accent
#EDB13B
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #540F26

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

Preview Lab → · Contrast checker → · Palette generator →

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