#540F4F#540F4F

#540F4F is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.126 H 331.3°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#540F4F
RGBrgb(84, 15, 79)
HSLhsl(304, 70%, 19%)
HSVhsv(304, 82%, 33%)
CMYKcmyk(0%, 82.1%, 6%, 67.1%)
CIE-LABlab(19.19, 38.60, -21.89)
CIE-LCHlch(19.19, 44.38, 330.45°)
OKLaboklab(32% 0.1103 -0.0603)
OKLCHoklch(32% 0.126 331.3)
XYZxyz(5.2383, 2.7914, 7.6585)
Luminance0.0279 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F4F #0F5414
analogous
#370F54 #540F4F #540F2D
triadic
#540F4F #4F540F #0F4F54
tetradic
#540F4F #54370F #0F5414 #0F2D54
square
#540F4F #54370F #0F5414 #0F2D54
split-complementary
#540F4F #2D540F #0F5437
monochromatic
#1A0518 #20061E #540F4F #881880 #BC22B1

Accessibility & contrast

On white

13.48
#540F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#540F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F4F
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F4F#FFFFFF#000000##FFFFFF
##540F4F1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082851
Deuteranopia (green-blind)
#25324D
Tritanopia (blue-blind)
#58182E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #540f4f;
/* rgb */ color: rgb(84, 15, 79);
/* oklch */ color: oklch(32.0% 0.126 331.3);
Tailwind
colors: {
  custom: {
    50: '#875680',
    500: '#540f4f',
    950: '#000000',
  },
}
SCSS
$custom: #540f4f;
$custom-light: #875680;
$custom-dark: #000000;
JSON
{
  "hex": "#540f4f",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 304.348,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.32001,
    "c": 0.12569,
    "h": 331.3
  },
  "luminance": 0.02791
}

Semantic roles & 50–950 ramp

primary
#540F4F
secondary
#318E38
accent
#ED483B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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