#540F35#540F35

#540F35 is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.6% C 0.107 H 351.8°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#540F35
RGBrgb(84, 15, 53)
HSLhsl(327, 70%, 19%)
HSVhsv(327, 82%, 33%)
CMYKcmyk(0%, 82.1%, 36.9%, 67.1%)
CIE-LABlab(17.85, 34.59, -5.91)
CIE-LCHlch(17.85, 35.09, 350.31°)
OKLaboklab(30.59% 0.106 -0.0153)
OKLCHoklch(30.59% 0.107 351.8)
XYZxyz(4.4699, 2.4840, 3.6116)
Luminance0.0248 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F35 #0F542E
analogous
#510F54 #540F35 #540F12
triadic
#540F35 #35540F #0F3554
tetradic
#540F35 #54510F #0F542E #0F1254
square
#540F35 #54510F #0F542E #0F1254
split-complementary
#540F35 #12540F #0F5451
monochromatic
#1A0510 #200614 #540F35 #881856 #BC2277

Accessibility & contrast

On white

14.03
#540F35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#540F35 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F35
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F35#FFFFFF#000000##FFFFFF
##540F351.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2436
Deuteranopia (green-blind)
#2F3033
Tritanopia (blue-blind)
#5B0920
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540f35;
/* rgb */ color: rgb(84, 15, 53);
/* oklch */ color: oklch(30.6% 0.107 351.8);
Tailwind
colors: {
  custom: {
    50: '#88556c',
    500: '#540f35',
    950: '#000000',
  },
}
SCSS
$custom: #540f35;
$custom-light: #88556c;
$custom-dark: #000000;
JSON
{
  "hex": "#540f35",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 53
  },
  "hsl": {
    "h": 326.957,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30594,
    "c": 0.10708,
    "h": 351.8
  },
  "luminance": 0.02484
}

Semantic roles & 50–950 ramp

primary
#540F35
secondary
#318E5B
accent
#ED8B3B
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0306
muted
#7D787A

Preview Lab

Preview with #540F35

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

Preview Lab → · Contrast checker → · Palette generator →

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