#541B52#541B52

#541B52 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.5% C 0.112 H 329.2°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#541B52
RGBrgb(84, 27, 82)
HSLhsl(302, 51%, 22%)
HSVhsv(302, 68%, 33%)
CMYKcmyk(0%, 67.9%, 2.4%, 67.1%)
CIE-LABlab(21.13, 34.20, -20.86)
CIE-LCHlch(21.13, 40.06, 328.62°)
OKLaboklab(33.46% 0.0962 -0.0575)
OKLCHoklch(33.46% 0.112 329.2)
XYZxyz(5.5710, 3.2783, 8.3203)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B52 #1B541D
analogous
#3A1B54 #541B52 #541B36
triadic
#541B52 #52541B #1B5254
tetradic
#541B52 #543A1B #1B541D #1B3654
square
#541B52 #543A1B #1B541D #1B3654
split-complementary
#541B52 #36541B #1B543A
monochromatic
#170717 #260C25 #541B52 #822A7F #B139AC

Accessibility & contrast

On white

12.68
#541B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#541B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B52
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B52#FFFFFF#000000##FFFFFF
##541B521.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152E54
Deuteranopia (green-blind)
#2A3550
Tritanopia (blue-blind)
#572233
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #541b52;
/* rgb */ color: rgb(84, 27, 82);
/* oklch */ color: oklch(33.5% 0.112 329.2);
Tailwind
colors: {
  custom: {
    50: '#865c83',
    500: '#541b52',
    950: '#000000',
  },
}
SCSS
$custom: #541b52;
$custom-light: #865c83;
$custom-dark: #000000;
JSON
{
  "hex": "#541b52",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 82
  },
  "hsl": {
    "h": 302.105,
    "s": 51.351,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33455,
    "c": 0.11205,
    "h": 329.2
  },
  "luminance": 0.03278
}

Semantic roles & 50–950 ramp

primary
#541B52
secondary
#418A44
accent
#DB524D
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #541B52

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

Preview Lab → · Contrast checker → · Palette generator →

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