#541381#541381

#541381 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.168 H 305.8°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#541381
RGBrgb(84, 19, 129)
HSLhsl(275, 74%, 29%)
HSVhsv(275, 85%, 51%)
CMYKcmyk(34.9%, 85.3%, 0%, 49.4%)
CIE-LABlab(23.46, 47.68, -47.73)
CIE-LCHlch(23.46, 67.46, 314.97°)
OKLaboklab(36.21% 0.0983 -0.136)
OKLCHoklch(36.21% 0.168 305.8)
XYZxyz(7.8506, 3.9356, 21.1107)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541381 #408113
analogous
#1D1381 #541381 #811377
triadic
#541381 #815413 #138154
tetradic
#541381 #811D13 #408113 #137781
square
#541381 #811D13 #408113 #137781
split-complementary
#541381 #778113 #13811D
monochromatic
#11041B #310B4C #541381 #771BB6 #972EE0

Accessibility & contrast

On white

11.75
#541381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#541381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541381
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541381#FFFFFF#000000##FFFFFF
##5413811.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541381;
/* rgb */ color: rgb(84, 19, 129);
/* oklch */ color: oklch(36.2% 0.168 305.8);
Tailwind
colors: {
  custom: {
    50: '#895ba6',
    500: '#541381',
    950: '#000000',
  },
}
SCSS
$custom: #541381;
$custom-light: #895ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#541381",
  "rgb": {
    "r": 84,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 275.455,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36205,
    "c": 0.1678,
    "h": 305.8
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

primary
#541381
secondary
#6DB63A
accent
#F13783
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #541381

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

Preview Lab → · Contrast checker → · Palette generator →

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