#541179#541179

#541179 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.162 H 309.2°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#541179
RGBrgb(84, 17, 121)
HSLhsl(279, 75%, 27%)
HSVhsv(279, 86%, 47%)
CMYKcmyk(30.6%, 86%, 0%, 52.5%)
CIE-LABlab(22.54, 46.50, -44.15)
CIE-LCHlch(22.54, 64.12, 316.49°)
OKLaboklab(35.35% 0.1022 -0.1255)
OKLCHoklch(35.35% 0.162 309.2)
XYZxyz(7.3071, 3.6663, 18.4082)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541179 #367911
analogous
#201179 #541179 #79116A
triadic
#541179 #795411 #117954
tetradic
#541179 #792011 #367911 #116A79
square
#541179 #792011 #367911 #116A79
split-complementary
#541179 #6A7911 #117920
monochromatic
#13041B #2F0943 #541179 #7919AF #9D24E0

Accessibility & contrast

On white

12.12
#541179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#541179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541179
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541179#FFFFFF#000000##FFFFFF
##5411791.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#4E2D47
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #541179;
/* rgb */ color: rgb(84, 17, 121);
/* oklch */ color: oklch(35.3% 0.162 309.2);
Tailwind
colors: {
  custom: {
    50: '#895aa0',
    500: '#541179',
    950: '#000000',
  },
}
SCSS
$custom: #541179;
$custom-light: #895aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#541179",
  "rgb": {
    "r": 84,
    "g": 17,
    "b": 121
  },
  "hsl": {
    "h": 278.654,
    "s": 75.362,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35348,
    "c": 0.16181,
    "h": 309.2
  },
  "luminance": 0.03666
}

Semantic roles & 50–950 ramp

primary
#541179
secondary
#61B036
accent
#F23679
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #541179

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

Preview Lab → · Contrast checker → · Palette generator →

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