#541581#541581

#541581 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.166 H 305.7°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#541581
RGBrgb(84, 21, 129)
HSLhsl(275, 72%, 29%)
HSVhsv(275, 84%, 51%)
CMYKcmyk(34.9%, 83.7%, 0%, 49.4%)
CIE-LABlab(23.69, 46.99, -47.34)
CIE-LCHlch(23.69, 66.70, 314.79°)
OKLaboklab(36.37% 0.0968 -0.1349)
OKLCHoklch(36.37% 0.166 305.7)
XYZxyz(7.8859, 4.0062, 21.1225)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541581 #428115
analogous
#1E1581 #541581 #811578
triadic
#541581 #815415 #158154
tetradic
#541581 #811E15 #428115 #157881
square
#541581 #811E15 #428115 #157881
split-complementary
#541581 #788115 #15811E
monochromatic
#11041A #320C4C #541581 #761EB6 #9633DE

Accessibility & contrast

On white

11.66
#541581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#541581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541581
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541581#FFFFFF#000000##FFFFFF
##5415811.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#4C324C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #541581;
/* rgb */ color: rgb(84, 21, 129);
/* oklch */ color: oklch(36.4% 0.166 305.7);
Tailwind
colors: {
  custom: {
    50: '#895ca6',
    500: '#541581',
    950: '#000000',
  },
}
SCSS
$custom: #541581;
$custom-light: #895ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#541581",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 275,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36368,
    "c": 0.16602,
    "h": 305.7
  },
  "luminance": 0.04006
}

Semantic roles & 50–950 ramp

primary
#541581
secondary
#6FB63C
accent
#EF3985
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #541581

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

Preview Lab → · Contrast checker → · Palette generator →

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