#541A7A#541A7A

#541A7A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.154 H 307.8°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#541A7A
RGBrgb(84, 26, 122)
HSLhsl(276, 65%, 29%)
HSVhsv(276, 79%, 48%)
CMYKcmyk(31.1%, 78.7%, 0%, 52.2%)
CIE-LABlab(23.77, 43.41, -42.78)
CIE-LCHlch(23.77, 60.95, 315.42°)
OKLaboklab(36.24% 0.0943 -0.1215)
OKLCHoklch(36.24% 0.154 307.8)
XYZxyz(7.5377, 4.0289, 18.7891)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A7A #407A1A
analogous
#241A7A #541A7A #7A1A70
triadic
#541A7A #7A541A #1A7A54
tetradic
#541A7A #7A241A #407A1A #1A707A
square
#541A7A #7A241A #407A1A #1A707A
split-complementary
#541A7A #707A1A #1A7A24
monochromatic
#110519 #310F48 #541A7A #7725AC #9739D5

Accessibility & contrast

On white

11.63
#541A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541A7A
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A7A#FFFFFF#000000##FFFFFF
##541A7A1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#4E3249
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541a7a;
/* rgb */ color: rgb(84, 26, 122);
/* oklch */ color: oklch(36.2% 0.154 307.8);
Tailwind
colors: {
  custom: {
    50: '#885da1',
    500: '#541a7a',
    950: '#000000',
  },
}
SCSS
$custom: #541a7a;
$custom-light: #885da1;
$custom-dark: #000000;
JSON
{
  "hex": "#541a7a",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 276.25,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36235,
    "c": 0.15381,
    "h": 307.8
  },
  "luminance": 0.04029
}

Semantic roles & 50–950 ramp

primary
#541A7A
secondary
#6DAE41
accent
#E84082
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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