#541986#541986

#541986 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.167 H 303.4°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#541986
RGBrgb(84, 25, 134)
HSLhsl(272, 69%, 31%)
HSVhsv(272, 81%, 53%)
CMYKcmyk(37.3%, 81.3%, 0%, 47.5%)
CIE-LABlab(24.64, 46.69, -48.94)
CIE-LCHlch(24.64, 67.64, 313.66°)
OKLaboklab(37.17% 0.0921 -0.1396)
OKLCHoklch(37.17% 0.167 303.4)
XYZxyz(8.3059, 4.3013, 22.9423)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541986 #4B8619
analogous
#1D1986 #541986 #861981
triadic
#541986 #865419 #198654
tetradic
#541986 #861D19 #4B8619 #198186
square
#541986 #861D19 #4B8619 #198186
split-complementary
#541986 #818619 #19861D
monochromatic
#13061F #340F52 #541986 #7423BA #933EDB

Accessibility & contrast

On white

11.29
#541986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#541986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541986
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541986#FFFFFF#000000##FFFFFF
##5419861.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#4A3650
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541986;
/* rgb */ color: rgb(84, 25, 134);
/* oklch */ color: oklch(37.2% 0.167 303.4);
Tailwind
colors: {
  custom: {
    50: '#8a5eaa',
    500: '#541986',
    950: '#000000',
  },
}
SCSS
$custom: #541986;
$custom-light: #8a5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#541986",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 272.477,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37167,
    "c": 0.16724,
    "h": 303.4
  },
  "luminance": 0.04301
}

Semantic roles & 50–950 ramp

primary
#541986
secondary
#78BA41
accent
#EB3C8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541986

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

Preview Lab → · Contrast checker → · Palette generator →

#541986 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva