#541C87#541C87

#541C87 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.165 H 302.7°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#541C87
RGBrgb(84, 28, 135)
HSLhsl(271, 66%, 32%)
HSVhsv(271, 79%, 53%)
CMYKcmyk(37.8%, 79.3%, 0%, 47.1%)
CIE-LABlab(25.15, 45.72, -48.73)
CIE-LCHlch(25.15, 66.82, 313.17°)
OKLaboklab(37.55% 0.0892 -0.139)
OKLCHoklch(37.55% 0.165 302.7)
XYZxyz(8.4435, 4.4646, 23.3339)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541C87 #4F871C
analogous
#1F1C87 #541C87 #871C85
triadic
#541C87 #87541C #1C8754
tetradic
#541C87 #871F1C #4F871C #1C8587
square
#541C87 #871F1C #4F871C #1C8587
split-complementary
#541C87 #85871C #1C871F
monochromatic
#150722 #341154 #541C87 #7427BA #9245D8

Accessibility & contrast

On white

11.09
#541C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#541C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541C87
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541C87#FFFFFF#000000##FFFFFF
##541C871.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#493851
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541c87;
/* rgb */ color: rgb(84, 28, 135);
/* oklch */ color: oklch(37.5% 0.165 302.7);
Tailwind
colors: {
  custom: {
    50: '#895fab',
    500: '#541c87',
    950: '#000000',
  },
}
SCSS
$custom: #541c87;
$custom-light: #895fab;
$custom-dark: #000000;
JSON
{
  "hex": "#541c87",
  "rgb": {
    "r": 84,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 271.402,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37549,
    "c": 0.16521,
    "h": 302.7
  },
  "luminance": 0.04465
}

Semantic roles & 50–950 ramp

primary
#541C87
secondary
#7DBA45
accent
#E93F90
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541C87

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

Preview Lab → · Contrast checker → · Palette generator →

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