#541582#541582

#541582 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.167 H 305.3°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#541582
RGBrgb(84, 21, 130)
HSLhsl(275, 72%, 30%)
HSVhsv(275, 84%, 51%)
CMYKcmyk(35.4%, 83.8%, 0%, 49%)
CIE-LABlab(23.78, 47.22, -47.83)
CIE-LCHlch(23.78, 67.22, 314.63°)
OKLaboklab(36.46% 0.0965 -0.1363)
OKLCHoklch(36.46% 0.167 305.3)
XYZxyz(7.9527, 4.0329, 21.4742)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541582 #438215
analogous
#1E1582 #541582 #82157A
triadic
#541582 #825415 #158254
tetradic
#541582 #821E15 #438215 #157A82
square
#541582 #821E15 #438215 #157A82
split-complementary
#541582 #7A8215 #15821E
monochromatic
#11041A #320C4D #541582 #761EB7 #9633DE

Accessibility & contrast

On white

11.62
#541582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#541582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541582
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541582#FFFFFF#000000##FFFFFF
##5415821.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#4B334D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541582;
/* rgb */ color: rgb(84, 21, 130);
/* oklch */ color: oklch(36.5% 0.167 305.3);
Tailwind
colors: {
  custom: {
    50: '#895ca7',
    500: '#541582',
    950: '#000000',
  },
}
SCSS
$custom: #541582;
$custom-light: #895ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#541582",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 130
  },
  "hsl": {
    "h": 274.679,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36456,
    "c": 0.16701,
    "h": 305.3
  },
  "luminance": 0.04033
}

Semantic roles & 50–950 ramp

primary
#541582
secondary
#70B73C
accent
#EF3986
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #541582

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

Preview Lab → · Contrast checker → · Palette generator →

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