#541B9E#541B9E

#541B9E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.6% C 0.190 H 295.8°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#541B9E
RGBrgb(84, 27, 158)
HSLhsl(266, 71%, 36%)
HSVhsv(266, 83%, 62%)
CMYKcmyk(46.8%, 82.9%, 0%, 38%)
CIE-LABlab(27.12, 51.88, -59.72)
CIE-LCHlch(27.12, 79.10, 310.98°)
OKLaboklab(39.57% 0.0828 -0.1713)
OKLCHoklch(39.57% 0.19 295.8)
XYZxyz(10.2180, 5.1370, 32.7943)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B9E #659E1B
analogous
#1B249E #541B9E #961B9E
triadic
#541B9E #9E541B #1B9E54
tetradic
#541B9E #9E1B24 #659E1B #1B9E96
square
#541B9E #9E1B24 #659E1B #1B9E96
split-complementary
#541B9E #9E961B #249E1B
monochromatic
#1C0935 #38126A #541B9E #7024D2 #9052E1

Accessibility & contrast

On white

10.36
#541B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#541B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B9E
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B9E#FFFFFF#000000##FFFFFF
##541B9E1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#3F425E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #541b9e;
/* rgb */ color: rgb(84, 27, 158);
/* oklch */ color: oklch(39.6% 0.190 295.8);
Tailwind
colors: {
  custom: {
    50: '#8c60bc',
    500: '#541b9e',
    950: '#000000',
  },
}
SCSS
$custom: #541b9e;
$custom-light: #8c60bc;
$custom-dark: #000000;
JSON
{
  "hex": "#541b9e",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 266.107,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39565,
    "c": 0.19023,
    "h": 295.8
  },
  "luminance": 0.05137
}

Semantic roles & 50–950 ramp

primary
#541B9E
secondary
#92C451
accent
#EE3AA0
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #541B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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