#540E45#540E45

#540E45 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.3% C 0.119 H 338.4°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#540E45
RGBrgb(84, 14, 69)
HSLhsl(313, 71%, 19%)
HSVhsv(313, 83%, 33%)
CMYKcmyk(0%, 83.3%, 17.9%, 67.1%)
CIE-LABlab(18.49, 37.26, -16.12)
CIE-LCHlch(18.49, 40.60, 336.60°)
OKLaboklab(31.31% 0.1105 -0.0437)
OKLCHoklch(31.31% 0.119 338.4)
XYZxyz(4.8875, 2.6290, 5.8791)
Luminance0.0263 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E45 #0E541D
analogous
#400E54 #540E45 #540E22
triadic
#540E45 #45540E #0E4554
tetradic
#540E45 #54400E #0E541D #0E2254
square
#540E45 #54400E #0E541D #0E2254
split-complementary
#540E45 #22540E #0E5440
monochromatic
#1A0416 #20051A #540E45 #881770 #BD1F9B

Accessibility & contrast

On white

13.76
#540E45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#540E45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540E45
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E45#FFFFFF#000000##FFFFFF
##540E451.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122646
Deuteranopia (green-blind)
#2A3143
Tritanopia (blue-blind)
#591228
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540e45;
/* rgb */ color: rgb(84, 14, 69);
/* oklch */ color: oklch(31.3% 0.119 338.4);
Tailwind
colors: {
  custom: {
    50: '#875679',
    500: '#540e45',
    950: '#000000',
  },
}
SCSS
$custom: #540e45;
$custom-light: #875679;
$custom-dark: #000000;
JSON
{
  "hex": "#540e45",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 69
  },
  "hsl": {
    "h": 312.857,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31314,
    "c": 0.11886,
    "h": 338.4
  },
  "luminance": 0.02629
}

Semantic roles & 50–950 ramp

primary
#540E45
secondary
#2F8E44
accent
#EE603A
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #540E45

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

Preview Lab → · Contrast checker → · Palette generator →

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