#541981#541981

#541981 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.162 H 305.2°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#541981
RGBrgb(84, 25, 129)
HSLhsl(274, 68%, 30%)
HSVhsv(274, 81%, 51%)
CMYKcmyk(34.9%, 80.6%, 0%, 49.4%)
CIE-LABlab(24.21, 45.49, -46.50)
CIE-LCHlch(24.21, 65.05, 314.37°)
OKLaboklab(36.73% 0.0935 -0.1325)
OKLCHoklch(36.73% 0.162 305.2)
XYZxyz(7.9653, 4.1651, 21.1489)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541981 #468119
analogous
#201981 #541981 #81197A
triadic
#541981 #815419 #198154
tetradic
#541981 #812019 #468119 #197A81
square
#541981 #812019 #468119 #197A81
split-complementary
#541981 #7A8119 #198120
monochromatic
#11051A #330F4E #541981 #7523B4 #953BD9

Accessibility & contrast

On white

11.46
#541981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#541981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541981
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541981#FFFFFF#000000##FFFFFF
##5419811.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#4C344D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541981;
/* rgb */ color: rgb(84, 25, 129);
/* oklch */ color: oklch(36.7% 0.162 305.2);
Tailwind
colors: {
  custom: {
    50: '#895da6',
    500: '#541981',
    950: '#000000',
  },
}
SCSS
$custom: #541981;
$custom-light: #895da6;
$custom-dark: #000000;
JSON
{
  "hex": "#541981",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 274.038,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36729,
    "c": 0.16211,
    "h": 305.2
  },
  "luminance": 0.04165
}

Semantic roles & 50–950 ramp

primary
#541981
secondary
#73B541
accent
#EA3D88
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541981

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

Preview Lab → · Contrast checker → · Palette generator →

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