#541886#541886

#541886 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.168 H 303.5°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#541886
RGBrgb(84, 24, 134)
HSLhsl(273, 70%, 31%)
HSVhsv(273, 82%, 53%)
CMYKcmyk(37.3%, 82.1%, 0%, 47.5%)
CIE-LABlab(24.51, 47.08, -49.15)
CIE-LCHlch(24.51, 68.06, 313.76°)
OKLaboklab(37.07% 0.0929 -0.1402)
OKLCHoklch(37.07% 0.168 303.5)
XYZxyz(8.2849, 4.2593, 22.9353)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541886 #4A8618
analogous
#1D1886 #541886 #861881
triadic
#541886 #865418 #188654
tetradic
#541886 #861D18 #4A8618 #188186
square
#541886 #861D18 #4A8618 #188186
split-complementary
#541886 #818618 #18861D
monochromatic
#13051E #330F52 #541886 #7521BA #933CDC

Accessibility & contrast

On white

11.34
#541886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#541886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541886
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541886#FFFFFF#000000##FFFFFF
##5418861.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541886;
/* rgb */ color: rgb(84, 24, 134);
/* oklch */ color: oklch(37.1% 0.168 303.5);
Tailwind
colors: {
  custom: {
    50: '#8a5daa',
    500: '#541886',
    950: '#000000',
  },
}
SCSS
$custom: #541886;
$custom-light: #8a5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#541886",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 272.727,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37074,
    "c": 0.16822,
    "h": 303.5
  },
  "luminance": 0.04259
}

Semantic roles & 50–950 ramp

primary
#541886
secondary
#77BA40
accent
#EC3B8C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541886

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

Preview Lab → · Contrast checker → · Palette generator →

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