#540F41#540F41

#540F41 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.2% C 0.115 H 341.6°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#540F41
RGBrgb(84, 15, 65)
HSLhsl(317, 70%, 19%)
HSVhsv(317, 82%, 33%)
CMYKcmyk(0%, 82.1%, 22.6%, 67.1%)
CIE-LABlab(18.40, 36.29, -13.49)
CIE-LCHlch(18.40, 38.71, 339.61°)
OKLaboklab(31.18% 0.1089 -0.0363)
OKLCHoklch(31.18% 0.115 341.6)
XYZxyz(4.7813, 2.6086, 5.2517)
Luminance0.0261 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F41 #0F5422
analogous
#450F54 #540F41 #540F1F
triadic
#540F41 #41540F #0F4154
tetradic
#540F41 #54450F #0F5422 #0F1F54
square
#540F41 #54450F #0F5422 #0F1F54
split-complementary
#540F41 #1F540F #0F5445
monochromatic
#1A0514 #200619 #540F41 #881869 #BC2291

Accessibility & contrast

On white

13.80
#540F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F41
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F41#FFFFFF#000000##FFFFFF
##540F411.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152642
Deuteranopia (green-blind)
#2B313F
Tritanopia (blue-blind)
#5A1026
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540f41;
/* rgb */ color: rgb(84, 15, 65);
/* oklch */ color: oklch(31.2% 0.115 341.6);
Tailwind
colors: {
  custom: {
    50: '#875675',
    500: '#540f41',
    950: '#000000',
  },
}
SCSS
$custom: #540f41;
$custom-light: #875675;
$custom-dark: #000000;
JSON
{
  "hex": "#540f41",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 65
  },
  "hsl": {
    "h": 316.522,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.3118,
    "c": 0.11477,
    "h": 341.6
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#540F41
secondary
#318E4A
accent
#ED6C3B
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #540F41

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

Preview Lab → · Contrast checker → · Palette generator →

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