#541789#541789

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

Color values

HEX#541789
RGBrgb(84, 23, 137)
HSLhsl(272, 71%, 31%)
HSVhsv(272, 83%, 54%)
CMYKcmyk(38.7%, 83.2%, 0%, 46.3%)
CIE-LABlab(24.65, 48.17, -50.80)
CIE-LCHlch(24.65, 70.01, 313.48°)
OKLaboklab(37.25% 0.0928 -0.1451)
OKLCHoklch(37.25% 0.172 302.6)
XYZxyz(8.4768, 4.3037, 24.0462)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541789 #4C8917
analogous
#1B1789 #541789 #891785
triadic
#541789 #895417 #178954
tetradic
#541789 #891B17 #4C8917 #178589
square
#541789 #891B17 #4C8917 #178589
split-complementary
#541789 #858917 #17891B
monochromatic
#140520 #340E55 #541789 #7420BD #933CDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##541789#FFFFFF#000000##FFFFFF
##5417891.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)
#003A8C
Deuteranopia (green-blind)
#003A87
Tritanopia (blue-blind)
#493751
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #541789;
/* rgb */ color: rgb(84, 23, 137);
/* oklch */ color: oklch(37.3% 0.172 302.6);
Tailwind
colors: {
  custom: {
    50: '#8a5dac',
    500: '#541789',
    950: '#000000',
  },
}
SCSS
$custom: #541789;
$custom-light: #8a5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#541789",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 272.105,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37254,
    "c": 0.1722,
    "h": 302.6
  },
  "luminance": 0.04304
}

Semantic roles & 50–950 ramp

primary
#541789
secondary
#79BD3F
accent
#EE3A8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541789

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

Preview Lab → · Contrast checker → · Palette generator →

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