#540D33#540D33

#540D33 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.3% C 0.108 H 353.2°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#540D33
RGBrgb(84, 13, 51)
HSLhsl(328, 73%, 19%)
HSVhsv(328, 85%, 33%)
CMYKcmyk(0%, 84.5%, 39.3%, 67.1%)
CIE-LABlab(17.52, 35.03, -4.98)
CIE-LCHlch(17.52, 35.39, 351.91°)
OKLaboklab(30.33% 0.1076 -0.0127)
OKLCHoklch(30.33% 0.108 353.2)
XYZxyz(4.3979, 2.4122, 3.3653)
Luminance0.0241 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D33 #0D542E
analogous
#520D54 #540D33 #540D10
triadic
#540D33 #33540D #0D3354
tetradic
#540D33 #54520D #0D542E #0D1054
square
#540D33 #54520D #0D542E #0D1054
split-complementary
#540D33 #10540D #0D5452
monochromatic
#1A0410 #1F0513 #540D33 #891553 #BE1D73

Accessibility & contrast

On white

14.17
#540D33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#540D33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D33
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D33#FFFFFF#000000##FFFFFF
##540D331.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2334
Deuteranopia (green-blind)
#2F3031
Tritanopia (blue-blind)
#5B061E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540d33;
/* rgb */ color: rgb(84, 13, 51);
/* oklch */ color: oklch(30.3% 0.108 353.2);
Tailwind
colors: {
  custom: {
    50: '#88546a',
    500: '#540d33',
    950: '#000000',
  },
}
SCSS
$custom: #540d33;
$custom-light: #88546a;
$custom-dark: #000000;
JSON
{
  "hex": "#540d33",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 51
  },
  "hsl": {
    "h": 327.887,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30326,
    "c": 0.10834,
    "h": 353.2
  },
  "luminance": 0.02412
}

Semantic roles & 50–950 ramp

primary
#540D33
secondary
#2E8F5B
accent
#F08D38
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0306
muted
#7D787A

Preview Lab

Preview with #540D33

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

Preview Lab → · Contrast checker → · Palette generator →

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