#541996#541996

#541996 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.184 H 298.3°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#541996
RGBrgb(84, 25, 150)
HSLhsl(268, 71%, 34%)
HSVhsv(268, 83%, 59%)
CMYKcmyk(44%, 83.3%, 0%, 41.2%)
CIE-LABlab(26.10, 50.62, -56.48)
CIE-LCHlch(26.10, 75.85, 311.86°)
OKLaboklab(38.63% 0.087 -0.1618)
OKLCHoklch(38.63% 0.184 298.3)
XYZxyz(9.5074, 4.7819, 29.2703)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541996 #5B9619
analogous
#191C96 #541996 #931996
triadic
#541996 #965419 #199654
tetradic
#541996 #96191C #5B9619 #199693
square
#541996 #96191C #5B9619 #199693
split-complementary
#541996 #969319 #1C9619
monochromatic
#19082D #371062 #541996 #7122CA #9049E1

Accessibility & contrast

On white

10.73
#541996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#541996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541996
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541996#FFFFFF#000000##FFFFFF
##5419961.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#433D59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #541996;
/* rgb */ color: rgb(84, 25, 150);
/* oklch */ color: oklch(38.6% 0.184 298.3);
Tailwind
colors: {
  custom: {
    50: '#8b5fb6',
    500: '#541996',
    950: '#000000',
  },
}
SCSS
$custom: #541996;
$custom-light: #8b5fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#541996",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 268.32,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38629,
    "c": 0.18368,
    "h": 298.3
  },
  "luminance": 0.04782
}

Semantic roles & 50–950 ramp

primary
#541996
secondary
#89C249
accent
#EE3A99
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #541996

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

Preview Lab → · Contrast checker → · Palette generator →

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