#540D46#540D46

#540D46 is a dark, vivid pink. Relative luminance 0.026; OKLCH L 31.3% C 0.121 H 337.6°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#540D46
RGBrgb(84, 13, 70)
HSLhsl(312, 73%, 19%)
HSVhsv(312, 85%, 33%)
CMYKcmyk(0%, 84.5%, 16.7%, 67.1%)
CIE-LABlab(18.43, 37.75, -16.91)
CIE-LCHlch(18.43, 41.36, 335.87°)
OKLaboklab(31.29% 0.1116 -0.046)
OKLCHoklch(31.29% 0.121 337.6)
XYZxyz(4.9057, 2.6153, 6.0396)
Luminance0.0261 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D46 #0D541B
analogous
#3F0D54 #540D46 #540D23
triadic
#540D46 #46540D #0D4654
tetradic
#540D46 #543F0D #0D541B #0D2354
square
#540D46 #543F0D #0D541B #0D2354
split-complementary
#540D46 #23540D #0D543F
monochromatic
#1A0416 #1F051A #540D46 #891572 #BE1D9E

Accessibility & contrast

On white

13.79
#540D46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540D46
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D46#FFFFFF#000000##FFFFFF
##540D461.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102647
Deuteranopia (green-blind)
#293144
Tritanopia (blue-blind)
#591229
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540d46;
/* rgb */ color: rgb(84, 13, 70);
/* oklch */ color: oklch(31.3% 0.121 337.6);
Tailwind
colors: {
  custom: {
    50: '#875579',
    500: '#540d46',
    950: '#000000',
  },
}
SCSS
$custom: #540d46;
$custom-light: #875579;
$custom-dark: #000000;
JSON
{
  "hex": "#540d46",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 70
  },
  "hsl": {
    "h": 311.831,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31288,
    "c": 0.12073,
    "h": 337.6
  },
  "luminance": 0.02615
}

Semantic roles & 50–950 ramp

primary
#540D46
secondary
#2E8F41
accent
#F05C38
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #540D46

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

Preview Lab → · Contrast checker → · Palette generator →

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