#541977#541977

#541977 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.152 H 309.2°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#541977
RGBrgb(84, 25, 119)
HSLhsl(278, 65%, 28%)
HSVhsv(278, 79%, 47%)
CMYKcmyk(29.4%, 79%, 0%, 53.3%)
CIE-LABlab(23.38, 43.12, -41.50)
CIE-LCHlch(23.38, 59.85, 316.10°)
OKLaboklab(35.89% 0.0959 -0.1178)
OKLCHoklch(35.89% 0.152 309.2)
XYZxyz(7.3329, 3.9121, 17.8180)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541977 #3C7719
analogous
#251977 #541977 #77196B
triadic
#541977 #775419 #197754
tetradic
#541977 #772519 #3C7719 #196B77
square
#541977 #772519 #3C7719 #196B77
split-complementary
#541977 #6B7719 #197725
monochromatic
#120519 #300E44 #541977 #7824AA #9A36D5

Accessibility & contrast

On white

11.78
#541977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#541977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541977
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541977#FFFFFF#000000##FFFFFF
##5419771.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#003875
Tritanopia (blue-blind)
#4F3047
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #541977;
/* rgb */ color: rgb(84, 25, 119);
/* oklch */ color: oklch(35.9% 0.152 309.2);
Tailwind
colors: {
  custom: {
    50: '#885d9f',
    500: '#541977',
    950: '#000000',
  },
}
SCSS
$custom: #541977;
$custom-light: #885d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#541977",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 277.66,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35886,
    "c": 0.15186,
    "h": 309.2
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#541977
secondary
#68AC40
accent
#E8407E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541977

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

Preview Lab → · Contrast checker → · Palette generator →

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