#541B8E#541B8E

#541B8E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.174 H 300.5°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#541B8E
RGBrgb(84, 27, 142)
HSLhsl(270, 68%, 33%)
HSVhsv(270, 81%, 56%)
CMYKcmyk(40.8%, 81%, 0%, 44.3%)
CIE-LABlab(25.63, 47.87, -52.32)
CIE-LCHlch(25.63, 70.91, 312.46°)
OKLaboklab(38.07% 0.0881 -0.1496)
OKLCHoklch(38.07% 0.174 300.5)
XYZxyz(8.9294, 4.6216, 26.0076)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B8E #558E1B
analogous
#1B1C8E #541B8E #8D1B8E
triadic
#541B8E #8E541B #1B8E54
tetradic
#541B8E #8E1B1C #558E1B #1B8E8D
square
#541B8E #8E1B1C #558E1B #1B8E8D
split-complementary
#541B8E #8E8D1B #1C8E1B
monochromatic
#170727 #36115B #541B8E #7225C1 #9147DC

Accessibility & contrast

On white

10.91
#541B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#541B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B8E
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B8E#FFFFFF#000000##FFFFFF
##541B8E1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#463B55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #541b8e;
/* rgb */ color: rgb(84, 27, 142);
/* oklch */ color: oklch(38.1% 0.174 300.5);
Tailwind
colors: {
  custom: {
    50: '#8a5fb0',
    500: '#541b8e',
    950: '#000000',
  },
}
SCSS
$custom: #541b8e;
$custom-light: #8a5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#541b8e",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 269.739,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38073,
    "c": 0.17357,
    "h": 300.5
  },
  "luminance": 0.04622
}

Semantic roles & 50–950 ramp

primary
#541B8E
secondary
#83BE47
accent
#EB3D95
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #541B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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