#541A7B#541A7B

#541A7B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.155 H 307.4°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#541A7B
RGBrgb(84, 26, 123)
HSLhsl(276, 65%, 29%)
HSVhsv(276, 79%, 48%)
CMYKcmyk(31.7%, 78.9%, 0%, 51.8%)
CIE-LABlab(23.85, 43.65, -43.29)
CIE-LCHlch(23.85, 61.47, 315.24°)
OKLaboklab(36.32% 0.094 -0.123)
OKLCHoklch(36.32% 0.155 307.4)
XYZxyz(7.5999, 4.0538, 19.1171)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A7B #417B1A
analogous
#231A7B #541A7B #7B1A72
triadic
#541A7B #7B541A #1A7B54
tetradic
#541A7B #7B231A #417B1A #1A727B
square
#541A7B #7B231A #417B1A #1A727B
split-complementary
#541A7B #727B1A #1A7B23
monochromatic
#110519 #310F48 #541A7B #7725AE #973AD5

Accessibility & contrast

On white

11.60
#541A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#541A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A7B
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A7B#FFFFFF#000000##FFFFFF
##541A7B1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#4D324A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541a7b;
/* rgb */ color: rgb(84, 26, 123);
/* oklch */ color: oklch(36.3% 0.155 307.4);
Tailwind
colors: {
  custom: {
    50: '#885da2',
    500: '#541a7b',
    950: '#000000',
  },
}
SCSS
$custom: #541a7b;
$custom-light: #885da2;
$custom-dark: #000000;
JSON
{
  "hex": "#541a7b",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 275.876,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36318,
    "c": 0.15485,
    "h": 307.4
  },
  "luminance": 0.04054
}

Semantic roles & 50–950 ramp

primary
#541A7B
secondary
#6EAF42
accent
#E84083
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541A7B

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

Preview Lab → · Contrast checker → · Palette generator →

#541A7B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva