#540F46#540F46

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

Color values

HEX#540F46
RGBrgb(84, 15, 70)
HSLhsl(312, 70%, 19%)
HSVhsv(312, 82%, 33%)
CMYKcmyk(0%, 82.1%, 16.7%, 67.1%)
CIE-LABlab(18.67, 37.08, -16.54)
CIE-LCHlch(18.67, 40.60, 335.96°)
OKLaboklab(31.46% 0.1096 -0.0449)
OKLCHoklch(31.46% 0.118 337.7)
XYZxyz(4.9326, 2.6691, 6.0486)
Luminance0.0267 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F46 #0F541D
analogous
#400F54 #540F46 #540F24
triadic
#540F46 #46540F #0F4654
tetradic
#540F46 #54400F #0F541D #0F2454
square
#540F46 #54400F #0F541D #0F2454
split-complementary
#540F46 #24540F #0F5440
monochromatic
#1A0516 #20061B #540F46 #881871 #BC229D

Accessibility & contrast

On white

13.69
#540F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F46
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F46#FFFFFF#000000##FFFFFF
##540F461.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #540f46;
/* rgb */ color: rgb(84, 15, 70);
/* oklch */ color: oklch(31.5% 0.118 337.7);
Tailwind
colors: {
  custom: {
    50: '#875679',
    500: '#540f46',
    950: '#000000',
  },
}
SCSS
$custom: #540f46;
$custom-light: #875679;
$custom-dark: #000000;
JSON
{
  "hex": "#540f46",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 70
  },
  "hsl": {
    "h": 312.174,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31457,
    "c": 0.11848,
    "h": 337.7
  },
  "luminance": 0.02669
}

Semantic roles & 50–950 ramp

primary
#540F46
secondary
#318E44
accent
#ED5F3B
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #540F46

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

Preview Lab → · Contrast checker → · Palette generator →

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