#541B8C#541B8C

#541B8C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.171 H 301.1°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#541B8C
RGBrgb(84, 27, 140)
HSLhsl(270, 68%, 33%)
HSVhsv(270, 81%, 55%)
CMYKcmyk(40%, 80.7%, 0%, 45.1%)
CIE-LABlab(25.45, 47.37, -51.37)
CIE-LCHlch(25.45, 69.88, 312.68°)
OKLaboklab(37.89% 0.0887 -0.1468)
OKLCHoklch(37.89% 0.171 301.1)
XYZxyz(8.7805, 4.5621, 25.2238)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B8C #538C1B
analogous
#1B1B8C #541B8C #8C1B8C
triadic
#541B8C #8C541B #1B8C54
tetradic
#541B8C #8C1B1B #538C1B #1B8C8C
square
#541B8C #8C1B1B #538C1B #1B8C8C
split-complementary
#541B8C #8C8C1B #1B8C1B
monochromatic
#160725 #351159 #541B8C #7325BF #9146DB

Accessibility & contrast

On white

10.98
#541B8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#541B8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B8C
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B8C#FFFFFF#000000##FFFFFF
##541B8C1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#473A54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541b8c;
/* rgb */ color: rgb(84, 27, 140);
/* oklch */ color: oklch(37.9% 0.171 301.1);
Tailwind
colors: {
  custom: {
    50: '#8a5faf',
    500: '#541b8c',
    950: '#000000',
  },
}
SCSS
$custom: #541b8c;
$custom-light: #8a5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#541b8c",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 140
  },
  "hsl": {
    "h": 270.265,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37892,
    "c": 0.17148,
    "h": 301.1
  },
  "luminance": 0.04562
}

Semantic roles & 50–950 ramp

primary
#541B8C
secondary
#81BD46
accent
#EB3D93
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541B8C

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

Preview Lab → · Contrast checker → · Palette generator →

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