#541796#541796

#541796 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.185 H 298.5°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#541796
RGBrgb(84, 23, 150)
HSLhsl(269, 73%, 34%)
HSVhsv(269, 85%, 59%)
CMYKcmyk(44%, 84.7%, 0%, 41.2%)
CIE-LABlab(25.86, 51.33, -56.88)
CIE-LCHlch(25.86, 76.62, 312.06°)
OKLaboklab(38.46% 0.0884 -0.1629)
OKLCHoklch(38.46% 0.185 298.5)
XYZxyz(9.4661, 4.6995, 29.2566)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541796 #599617
analogous
#171A96 #541796 #941796
triadic
#541796 #965417 #179654
tetradic
#541796 #96171A #599617 #179694
square
#541796 #96171A #599617 #179694
split-complementary
#541796 #969417 #1A9617
monochromatic
#19072C #360F61 #541796 #721FCB #9145E2

Accessibility & contrast

On white

10.82
#541796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#541796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541796
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541796#FFFFFF#000000##FFFFFF
##5417961.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541796;
/* rgb */ color: rgb(84, 23, 150);
/* oklch */ color: oklch(38.5% 0.185 298.5);
Tailwind
colors: {
  custom: {
    50: '#8b5eb6',
    500: '#541796',
    950: '#000000',
  },
}
SCSS
$custom: #541796;
$custom-light: #8b5eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#541796",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 268.819,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38461,
    "c": 0.18533,
    "h": 298.5
  },
  "luminance": 0.047
}

Semantic roles & 50–950 ramp

primary
#541796
secondary
#87C345
accent
#F03898
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #541796

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

Preview Lab → · Contrast checker → · Palette generator →

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