#541989#541989

#541989 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.170 H 302.4°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#541989
RGBrgb(84, 25, 137)
HSLhsl(272, 69%, 32%)
HSVhsv(272, 82%, 54%)
CMYKcmyk(38.7%, 81.8%, 0%, 46.3%)
CIE-LABlab(24.91, 47.42, -50.38)
CIE-LCHlch(24.91, 69.19, 313.27°)
OKLaboklab(37.43% 0.0912 -0.1438)
OKLCHoklch(37.43% 0.17 302.4)
XYZxyz(8.5181, 4.3862, 24.0599)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541989 #4E8919
analogous
#1C1989 #541989 #891986
triadic
#541989 #895419 #198954
tetradic
#541989 #891C19 #4E8919 #198689
square
#541989 #891C19 #4E8919 #198689
split-complementary
#541989 #868919 #19891C
monochromatic
#150621 #341055 #541989 #7422BD #9240DC

Accessibility & contrast

On white

11.19
#541989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#541989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541989
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541989#FFFFFF#000000##FFFFFF
##5419891.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003B87
Tritanopia (blue-blind)
#493851
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #541989;
/* rgb */ color: rgb(84, 25, 137);
/* oklch */ color: oklch(37.4% 0.170 302.4);
Tailwind
colors: {
  custom: {
    50: '#8a5eac',
    500: '#541989',
    950: '#000000',
  },
}
SCSS
$custom: #541989;
$custom-light: #8a5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#541989",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 271.607,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37434,
    "c": 0.17032,
    "h": 302.4
  },
  "luminance": 0.04386
}

Semantic roles & 50–950 ramp

primary
#541989
secondary
#7CBC41
accent
#EC3C8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541989

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

Preview Lab → · Contrast checker → · Palette generator →

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