#541686#541686

#541686 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.170 H 303.7°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#541686
RGBrgb(84, 22, 134)
HSLhsl(273, 72%, 31%)
HSVhsv(273, 84%, 53%)
CMYKcmyk(37.3%, 83.6%, 0%, 47.5%)
CIE-LABlab(24.26, 47.81, -49.57)
CIE-LCHlch(24.26, 68.87, 313.97°)
OKLaboklab(36.9% 0.0945 -0.1414)
OKLCHoklch(36.9% 0.17 303.7)
XYZxyz(8.2451, 4.1799, 22.9221)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541686 #488616
analogous
#1C1686 #541686 #861680
triadic
#541686 #865416 #168654
tetradic
#541686 #861C16 #488616 #168086
square
#541686 #861C16 #488616 #168086
split-complementary
#541686 #808616 #16861C
monochromatic
#12051D #330D51 #541686 #751FBB #9438DE

Accessibility & contrast

On white

11.44
#541686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#541686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541686
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541686#FFFFFF#000000##FFFFFF
##5416861.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#4A354F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541686;
/* rgb */ color: rgb(84, 22, 134);
/* oklch */ color: oklch(36.9% 0.170 303.7);
Tailwind
colors: {
  custom: {
    50: '#8a5caa',
    500: '#541686',
    950: '#000000',
  },
}
SCSS
$custom: #541686;
$custom-light: #8a5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#541686",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 273.214,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36898,
    "c": 0.17009,
    "h": 303.7
  },
  "luminance": 0.0418
}

Semantic roles & 50–950 ramp

primary
#541686
secondary
#75BA3E
accent
#EF398A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #541686

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

Preview Lab → · Contrast checker → · Palette generator →

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