#541B5F#541B5F

#541B5F is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.3% C 0.125 H 320.8°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#541B5F
RGBrgb(84, 27, 95)
HSLhsl(290, 56%, 24%)
HSVhsv(290, 72%, 37%)
CMYKcmyk(11.6%, 71.6%, 0%, 62.7%)
CIE-LABlab(21.93, 36.85, -28.25)
CIE-LCHlch(21.93, 46.44, 322.53°)
OKLaboklab(34.29% 0.0967 -0.0789)
OKLCHoklch(34.29% 0.125 320.8)
XYZxyz(6.1134, 3.4952, 11.1769)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B5F #265F1B
analogous
#321B5F #541B5F #5F1B48
triadic
#541B5F #5F541B #1B5F54
tetradic
#541B5F #5F321B #265F1B #1B485F
square
#541B5F #5F321B #265F1B #1B485F
split-complementary
#541B5F #485F1B #1B5F32
monochromatic
#150718 #2A0D2F #541B5F #7E298F #A836BE

Accessibility & contrast

On white

12.36
#541B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#541B5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B5F
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B5F#FFFFFF#000000##FFFFFF
##541B5F1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053061
Deuteranopia (green-blind)
#22375D
Tritanopia (blue-blind)
#55273A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #541b5f;
/* rgb */ color: rgb(84, 27, 95);
/* oklch */ color: oklch(34.3% 0.125 320.8);
Tailwind
colors: {
  custom: {
    50: '#875d8d',
    500: '#541b5f',
    950: '#000000',
  },
}
SCSS
$custom: #541b5f;
$custom-light: #875d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#541b5f",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 95
  },
  "hsl": {
    "h": 290.294,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.34294,
    "c": 0.12478,
    "h": 320.8
  },
  "luminance": 0.03495
}

Semantic roles & 50–950 ramp

primary
#541B5F
secondary
#4F9541
accent
#DF4961
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #541B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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