#541F8B#541F8B

#541F8B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.166 H 300.9°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#541F8B
RGBrgb(84, 31, 139)
HSLhsl(269, 64%, 33%)
HSVhsv(269, 78%, 55%)
CMYKcmyk(39.6%, 77.7%, 0%, 45.5%)
CIE-LABlab(25.95, 45.43, -49.93)
CIE-LCHlch(25.95, 67.51, 312.30°)
OKLaboklab(38.21% 0.0855 -0.1426)
OKLCHoklch(38.21% 0.166 300.9)
XYZxyz(8.8052, 4.7288, 24.8699)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F8B #568B1F
analogous
#1F208B #541F8B #8A1F8B
triadic
#541F8B #8B541F #1F8B54
tetradic
#541F8B #8B1F20 #568B1F #1F8B8A
square
#541F8B #8B1F20 #568B1F #1F8B8A
split-complementary
#541F8B #8B8A1F #208B1F
monochromatic
#180927 #361459 #541F8B #722ABD #914DD7

Accessibility & contrast

On white

10.79
#541F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#541F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F8B
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F8B#FFFFFF#000000##FFFFFF
##541F8B1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#483B54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #541f8b;
/* rgb */ color: rgb(84, 31, 139);
/* oklch */ color: oklch(38.2% 0.166 300.9);
Tailwind
colors: {
  custom: {
    50: '#8a61ae',
    500: '#541f8b',
    950: '#000000',
  },
}
SCSS
$custom: #541f8b;
$custom-light: #8a61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#541f8b",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 269.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38214,
    "c": 0.16624,
    "h": 300.9
  },
  "luminance": 0.04729
}

Semantic roles & 50–950 ramp

primary
#541F8B
secondary
#84BA4C
accent
#E74195
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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