#541984#541984

#541984 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.165 H 304.1°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#541984
RGBrgb(84, 25, 132)
HSLhsl(273, 68%, 31%)
HSVhsv(273, 81%, 52%)
CMYKcmyk(36.4%, 81.1%, 0%, 48.2%)
CIE-LABlab(24.47, 46.21, -47.97)
CIE-LCHlch(24.47, 66.60, 313.93°)
OKLaboklab(36.99% 0.0927 -0.1368)
OKLCHoklch(36.99% 0.165 304.1)
XYZxyz(8.1677, 4.2460, 22.2146)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541984 #498419
analogous
#1E1984 #541984 #84197E
triadic
#541984 #845419 #198454
tetradic
#541984 #841E19 #498419 #197E84
square
#541984 #841E19 #498419 #197E84
split-complementary
#541984 #7E8419 #19841E
monochromatic
#13061D #330F51 #541984 #7523B7 #943DDA

Accessibility & contrast

On white

11.36
#541984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541984
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541984#FFFFFF#000000##FFFFFF
##5419841.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003A82
Tritanopia (blue-blind)
#4A354F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541984;
/* rgb */ color: rgb(84, 25, 132);
/* oklch */ color: oklch(37.0% 0.165 304.1);
Tailwind
colors: {
  custom: {
    50: '#895ea9',
    500: '#541984',
    950: '#000000',
  },
}
SCSS
$custom: #541984;
$custom-light: #895ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#541984",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 273.084,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3699,
    "c": 0.16519,
    "h": 304.1
  },
  "luminance": 0.04246
}

Semantic roles & 50–950 ramp

primary
#541984
secondary
#76B841
accent
#EB3D8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541984

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

Preview Lab → · Contrast checker → · Palette generator →

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