#541F91#541F91

#541F91 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.173 H 299.0°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#541F91
RGBrgb(84, 31, 145)
HSLhsl(268, 65%, 35%)
HSVhsv(268, 79%, 57%)
CMYKcmyk(42.1%, 78.6%, 0%, 43.1%)
CIE-LABlab(26.47, 46.96, -52.79)
CIE-LCHlch(26.47, 70.66, 311.65°)
OKLaboklab(38.75% 0.0839 -0.151)
OKLCHoklch(38.75% 0.173 299)
XYZxyz(9.2557, 4.9090, 27.2425)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F91 #5C911F
analogous
#1F2391 #541F91 #8D1F91
triadic
#541F91 #91541F #1F9154
tetradic
#541F91 #911F23 #5C911F #1F918D
square
#541F91 #911F23 #5C911F #1F918D
split-complementary
#541F91 #918D1F #23911F
monochromatic
#1A092C #37145F #541F91 #712AC3 #9051DA

Accessibility & contrast

On white

10.60
#541F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#541F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F91
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F91#FFFFFF#000000##FFFFFF
##541F911.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#003E8F
Tritanopia (blue-blind)
#453E57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #541f91;
/* rgb */ color: rgb(84, 31, 145);
/* oklch */ color: oklch(38.7% 0.173 299.0);
Tailwind
colors: {
  custom: {
    50: '#8a61b2',
    500: '#541f91',
    950: '#000000',
  },
}
SCSS
$custom: #541f91;
$custom-light: #8a61b2;
$custom-dark: #000000;
JSON
{
  "hex": "#541f91",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 267.895,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38746,
    "c": 0.17272,
    "h": 299
  },
  "luminance": 0.04909
}

Semantic roles & 50–950 ramp

primary
#541F91
secondary
#8ABD4F
accent
#E8409A
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #541F91

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

Preview Lab → · Contrast checker → · Palette generator →

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