#541B97#541B97

#541B97 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.183 H 297.8°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#541B97
RGBrgb(84, 27, 151)
HSLhsl(268, 70%, 35%)
HSVhsv(268, 82%, 59%)
CMYKcmyk(44.4%, 82.1%, 0%, 40.8%)
CIE-LABlab(26.46, 50.11, -56.52)
CIE-LCHlch(26.46, 75.54, 311.56°)
OKLaboklab(38.9% 0.0852 -0.1619)
OKLCHoklch(38.9% 0.183 297.8)
XYZxyz(9.6325, 4.9029, 29.7110)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B97 #5E971B
analogous
#1B2097 #541B97 #921B97
triadic
#541B97 #97541B #1B9754
tetradic
#541B97 #971B20 #5E971B #1B9792
square
#541B97 #971B20 #5E971B #1B9792
split-complementary
#541B97 #97921B #20971B
monochromatic
#1A082F #371263 #541B97 #7124CB #904DDF

Accessibility & contrast

On white

10.60
#541B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#541B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B97
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B97#FFFFFF#000000##FFFFFF
##541B971.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#423E5A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #541b97;
/* rgb */ color: rgb(84, 27, 151);
/* oklch */ color: oklch(38.9% 0.183 297.8);
Tailwind
colors: {
  custom: {
    50: '#8b60b7',
    500: '#541b97',
    950: '#000000',
  },
}
SCSS
$custom: #541b97;
$custom-light: #8b60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#541b97",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 267.581,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38902,
    "c": 0.18295,
    "h": 297.8
  },
  "luminance": 0.04903
}

Semantic roles & 50–950 ramp

primary
#541B97
secondary
#8CC14C
accent
#EC3B9B
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #541B97

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

Preview Lab → · Contrast checker → · Palette generator →

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