#540F45#540F45

#540F45 is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.4% C 0.118 H 338.5°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#540F45
RGBrgb(84, 15, 69)
HSLhsl(313, 70%, 19%)
HSVhsv(313, 82%, 33%)
CMYKcmyk(0%, 82.1%, 17.9%, 67.1%)
CIE-LABlab(18.61, 36.91, -15.94)
CIE-LCHlch(18.61, 40.21, 336.65°)
OKLaboklab(31.4% 0.1095 -0.0432)
OKLCHoklch(31.4% 0.118 338.5)
XYZxyz(4.9013, 2.6566, 5.8837)
Luminance0.0266 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F45 #0F541E
analogous
#410F54 #540F45 #540F23
triadic
#540F45 #45540F #0F4554
tetradic
#540F45 #54410F #0F541E #0F2354
square
#540F45 #54410F #0F541E #0F2354
split-complementary
#540F45 #23540F #0F5441
monochromatic
#1A0515 #20061A #540F45 #881870 #BC229A

Accessibility & contrast

On white

13.71
#540F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F45
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F45#FFFFFF#000000##FFFFFF
##540F451.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #540f45;
/* rgb */ color: rgb(84, 15, 69);
/* oklch */ color: oklch(31.4% 0.118 338.5);
Tailwind
colors: {
  custom: {
    50: '#875679',
    500: '#540f45',
    950: '#000000',
  },
}
SCSS
$custom: #540f45;
$custom-light: #875679;
$custom-dark: #000000;
JSON
{
  "hex": "#540f45",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 69
  },
  "hsl": {
    "h": 313.043,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.314,
    "c": 0.11771,
    "h": 338.5
  },
  "luminance": 0.02656
}

Semantic roles & 50–950 ramp

primary
#540F45
secondary
#318E45
accent
#ED623B
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #540F45

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

Preview Lab → · Contrast checker → · Palette generator →

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