#541F58#541F58

#541F58 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.3% C 0.111 H 324.8°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#541F58
RGBrgb(84, 31, 88)
HSLhsl(296, 48%, 23%)
HSVhsv(296, 65%, 35%)
CMYKcmyk(4.5%, 64.8%, 0%, 65.5%)
CIE-LABlab(22.19, 33.43, -23.19)
CIE-LCHlch(22.19, 40.68, 325.25°)
OKLaboklab(34.35% 0.0911 -0.0642)
OKLCHoklch(34.35% 0.111 324.8)
XYZxyz(5.9075, 3.5697, 9.6085)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F58 #23581F
analogous
#371F58 #541F58 #581F3F
triadic
#541F58 #58541F #1F5854
tetradic
#541F58 #58371F #23581F #1F3F58
square
#541F58 #58371F #23581F #1F3F58
split-complementary
#541F58 #3F581F #1F5837
monochromatic
#160817 #290F2B #541F58 #7F2F85 #AA3FB3

Accessibility & contrast

On white

12.25
#541F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#541F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F58
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F58#FFFFFF#000000##FFFFFF
##541F581.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16315A
Deuteranopia (green-blind)
#293756
Tritanopia (blue-blind)
#562738
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #541f58;
/* rgb */ color: rgb(84, 31, 88);
/* oklch */ color: oklch(34.3% 0.111 324.8);
Tailwind
colors: {
  custom: {
    50: '#865f87',
    500: '#541f58',
    950: '#000000',
  },
}
SCSS
$custom: #541f58;
$custom-light: #865f87;
$custom-dark: #000000;
JSON
{
  "hex": "#541f58",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 88
  },
  "hsl": {
    "h": 295.789,
    "s": 47.899,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34346,
    "c": 0.11149,
    "h": 324.8
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#541F58
secondary
#4B8D46
accent
#D7505A
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #541F58

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

Preview Lab → · Contrast checker → · Palette generator →

#541F58 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva