#541978#541978

#541978 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.153 H 308.7°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#541978
RGBrgb(84, 25, 120)
HSLhsl(277, 66%, 28%)
HSVhsv(277, 79%, 47%)
CMYKcmyk(30%, 79.2%, 0%, 52.9%)
CIE-LABlab(23.46, 43.35, -42.01)
CIE-LCHlch(23.46, 60.37, 315.90°)
OKLaboklab(35.97% 0.0957 -0.1192)
OKLCHoklch(35.97% 0.153 308.7)
XYZxyz(7.3933, 3.9363, 18.1360)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541978 #3D7819
analogous
#241978 #541978 #78196C
triadic
#541978 #785419 #197854
tetradic
#541978 #782419 #3D7819 #196C78
square
#541978 #782419 #3D7819 #196C78
split-complementary
#541978 #6C7819 #197824
monochromatic
#120519 #310E45 #541978 #7724AB #9936D5

Accessibility & contrast

On white

11.75
#541978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#541978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541978
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541978#FFFFFF#000000##FFFFFF
##5419781.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#003976
Tritanopia (blue-blind)
#4E3048
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #541978;
/* rgb */ color: rgb(84, 25, 120);
/* oklch */ color: oklch(36.0% 0.153 308.7);
Tailwind
colors: {
  custom: {
    50: '#885da0',
    500: '#541978',
    950: '#000000',
  },
}
SCSS
$custom: #541978;
$custom-light: #885da0;
$custom-dark: #000000;
JSON
{
  "hex": "#541978",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 277.263,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35968,
    "c": 0.15288,
    "h": 308.7
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

primary
#541978
secondary
#69AD40
accent
#E83F7F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #541978

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

Preview Lab → · Contrast checker → · Palette generator →

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