#541B91#541B91

#541B91 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.177 H 299.6°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#541B91
RGBrgb(84, 27, 145)
HSLhsl(269, 69%, 34%)
HSVhsv(269, 81%, 57%)
CMYKcmyk(42.1%, 81.4%, 0%, 43.1%)
CIE-LABlab(25.90, 48.61, -53.73)
CIE-LCHlch(25.90, 72.46, 312.14°)
OKLaboklab(38.35% 0.0872 -0.1537)
OKLCHoklch(38.35% 0.177 299.6)
XYZxyz(9.1576, 4.7129, 27.2098)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B91 #58911B
analogous
#1B1D91 #541B91 #8F1B91
triadic
#541B91 #91541B #1B9154
tetradic
#541B91 #911B1D #58911B #1B918F
square
#541B91 #911B1D #58911B #1B918F
split-complementary
#541B91 #918F1B #1D911B
monochromatic
#18082A #36115D #541B91 #7225C5 #9149DD

Accessibility & contrast

On white

10.81
#541B91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#541B91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B91
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B91#FFFFFF#000000##FFFFFF
##541B911.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#003C8F
Tritanopia (blue-blind)
#453C56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #541b91;
/* rgb */ color: rgb(84, 27, 145);
/* oklch */ color: oklch(38.3% 0.177 299.6);
Tailwind
colors: {
  custom: {
    50: '#8b5fb2',
    500: '#541b91',
    950: '#000000',
  },
}
SCSS
$custom: #541b91;
$custom-light: #8b5fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#541b91",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 145
  },
  "hsl": {
    "h": 268.983,
    "s": 68.605,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38346,
    "c": 0.1767,
    "h": 299.6
  },
  "luminance": 0.04713
}

Semantic roles & 50–950 ramp

primary
#541B91
secondary
#86BF49
accent
#EB3C97
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #541B91

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

Preview Lab → · Contrast checker → · Palette generator →

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