#541F79#541F79

#541F79 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.147 H 307.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#541F79
RGBrgb(84, 31, 121)
HSLhsl(275, 59%, 30%)
HSVhsv(275, 74%, 47%)
CMYKcmyk(30.6%, 74.4%, 0%, 52.5%)
CIE-LABlab(24.47, 40.95, -41.01)
CIE-LCHlch(24.47, 57.96, 314.96°)
OKLaboklab(36.71% 0.0893 -0.1164)
OKLCHoklch(36.71% 0.147 307.5)
XYZxyz(7.5966, 4.2454, 18.5047)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F79 #44791F
analogous
#271F79 #541F79 #791F71
triadic
#541F79 #79541F #1F7954
tetradic
#541F79 #79271F #44791F #1F7179
square
#541F79 #79271F #44791F #1F7179
split-complementary
#541F79 #71791F #1F7927
monochromatic
#110618 #321348 #541F79 #762BAA #9643CF

Accessibility & contrast

On white

11.36
#541F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#541F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F79
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F79#FFFFFF#000000##FFFFFF
##541F791.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#033B77
Tritanopia (blue-blind)
#4E344A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541f79;
/* rgb */ color: rgb(84, 31, 121);
/* oklch */ color: oklch(36.7% 0.147 307.5);
Tailwind
colors: {
  custom: {
    50: '#8860a0',
    500: '#541f79',
    950: '#000000',
  },
}
SCSS
$custom: #541f79;
$custom-light: #8860a0;
$custom-dark: #000000;
JSON
{
  "hex": "#541f79",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 275.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36705,
    "c": 0.14671,
    "h": 307.5
  },
  "luminance": 0.04245
}

Semantic roles & 50–950 ramp

primary
#541F79
secondary
#71AC47
accent
#E24586
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #541F79

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

Preview Lab → · Contrast checker → · Palette generator →

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