#541579#541579

#541579 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.158 H 308.8°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#541579
RGBrgb(84, 21, 121)
HSLhsl(278, 70%, 28%)
HSVhsv(278, 83%, 47%)
CMYKcmyk(30.6%, 82.6%, 0%, 52.5%)
CIE-LABlab(23.01, 45.13, -43.38)
CIE-LCHlch(23.01, 62.60, 316.13°)
OKLaboklab(35.68% 0.099 -0.1233)
OKLCHoklch(35.68% 0.158 308.8)
XYZxyz(7.3748, 3.8018, 18.4308)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541579 #3A7915
analogous
#221579 #541579 #79156C
triadic
#541579 #795415 #157954
tetradic
#541579 #792215 #3A7915 #156C79
square
#541579 #792215 #3A7915 #156C79
split-complementary
#541579 #6C7915 #157922
monochromatic
#12051A #300C45 #541579 #781EAD #9B2EDB

Accessibility & contrast

On white

11.93
#541579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#541579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541579
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541579#FFFFFF#000000##FFFFFF
##5415791.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#4E2F47
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #541579;
/* rgb */ color: rgb(84, 21, 121);
/* oklch */ color: oklch(35.7% 0.158 308.8);
Tailwind
colors: {
  custom: {
    50: '#895ba0',
    500: '#541579',
    950: '#000000',
  },
}
SCSS
$custom: #541579;
$custom-light: #895ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#541579",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 277.8,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35675,
    "c": 0.15812,
    "h": 308.8
  },
  "luminance": 0.03802
}

Semantic roles & 50–950 ramp

primary
#541579
secondary
#66AF3B
accent
#ED3B7D
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #541579

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

Preview Lab → · Contrast checker → · Palette generator →

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