#541F85#541F85

#541F85 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.160 H 303.0°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#541F85
RGBrgb(84, 31, 133)
HSLhsl(271, 62%, 32%)
HSVhsv(271, 77%, 52%)
CMYKcmyk(36.8%, 76.7%, 0%, 47.8%)
CIE-LABlab(25.44, 43.92, -47.02)
CIE-LCHlch(25.44, 64.34, 313.05°)
OKLaboklab(37.7% 0.0869 -0.134)
OKLCHoklch(37.7% 0.16 303)
XYZxyz(8.3788, 4.5582, 22.6242)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F85 #50851F
analogous
#211F85 #541F85 #851F83
triadic
#541F85 #85541F #1F8554
tetradic
#541F85 #85211F #50851F #1F8385
square
#541F85 #85211F #50851F #1F8385
split-complementary
#541F85 #83851F #1F8521
monochromatic
#150822 #351353 #541F85 #732BB7 #924AD5

Accessibility & contrast

On white

10.99
#541F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#541F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F85
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F85#FFFFFF#000000##FFFFFF
##541F851.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#4A3950
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541f85;
/* rgb */ color: rgb(84, 31, 133);
/* oklch */ color: oklch(37.7% 0.160 303.0);
Tailwind
colors: {
  custom: {
    50: '#8960a9',
    500: '#541f85',
    950: '#000000',
  },
}
SCSS
$custom: #541f85;
$custom-light: #8960a9;
$custom-dark: #000000;
JSON
{
  "hex": "#541f85",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 271.176,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37696,
    "c": 0.15974,
    "h": 303
  },
  "luminance": 0.04558
}

Semantic roles & 50–950 ramp

primary
#541F85
secondary
#7EB749
accent
#E54391
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541F85

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

Preview Lab → · Contrast checker → · Palette generator →

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