#540F25#540F25

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

Color values

HEX#540F25
RGBrgb(84, 15, 37)
HSLhsl(341, 70%, 19%)
HSVhsv(341, 82%, 33%)
CMYKcmyk(0%, 82.1%, 56%, 67.1%)
CIE-LABlab(17.28, 32.79, 4.72)
CIE-LCHlch(17.28, 33.13, 8.19°)
OKLaboklab(29.99% 0.1 0.0122)
OKLCHoklch(29.99% 0.101 7)
XYZxyz(4.1613, 2.3606, 1.9864)
Luminance0.0236 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F25 #0F543E
analogous
#540F48 #540F25 #541C0F
triadic
#540F25 #25540F #0F2554
tetradic
#540F25 #48540F #0F543E #1C0F54
square
#540F25 #48540F #0F543E #1C0F54
split-complementary
#540F25 #0F541C #0F4854
monochromatic
#1A050B #20060E #540F25 #88183C #BC2253

Accessibility & contrast

On white

14.27
#540F25 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F25
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F25#FFFFFF#000000##FFFFFF
##540F251.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202225
Deuteranopia (green-blind)
#322F23
Tritanopia (blue-blind)
#5C0118
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540f25;
/* rgb */ color: rgb(84, 15, 37);
/* oklch */ color: oklch(30.0% 0.101 7.0);
Tailwind
colors: {
  custom: {
    50: '#89555f',
    500: '#540f25',
    950: '#000000',
  },
}
SCSS
$custom: #540f25;
$custom-light: #89555f;
$custom-dark: #000000;
JSON
{
  "hex": "#540f25",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 37
  },
  "hsl": {
    "h": 340.87,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29989,
    "c": 0.10076,
    "h": 7
  },
  "luminance": 0.0236
}

Semantic roles & 50–950 ramp

primary
#540F25
secondary
#318E70
accent
#EDB43B
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #540F25

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

Preview Lab → · Contrast checker → · Palette generator →

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