#541877#541877

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

Color values

HEX#541877
RGBrgb(84, 24, 119)
HSLhsl(278, 66%, 28%)
HSVhsv(278, 80%, 47%)
CMYKcmyk(29.4%, 79.8%, 0%, 53.3%)
CIE-LABlab(23.24, 43.52, -41.73)
CIE-LCHlch(23.24, 60.30, 316.21°)
OKLaboklab(35.79% 0.0968 -0.1184)
OKLCHoklch(35.79% 0.153 309.3)
XYZxyz(7.3119, 3.8701, 17.8110)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541877 #3B7718
analogous
#241877 #541877 #77186A
triadic
#541877 #775418 #187754
tetradic
#541877 #772418 #3B7718 #186A77
square
#541877 #772418 #3B7718 #186A77
split-complementary
#541877 #6A7718 #187724
monochromatic
#120519 #300E44 #541877 #7822AA #9A33D6

Accessibility & contrast

On white

11.84
#541877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#541877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541877
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541877#FFFFFF#000000##FFFFFF
##5418771.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541877;
/* rgb */ color: rgb(84, 24, 119);
/* oklch */ color: oklch(35.8% 0.153 309.3);
Tailwind
colors: {
  custom: {
    50: '#885c9f',
    500: '#541877',
    950: '#000000',
  },
}
SCSS
$custom: #541877;
$custom-light: #885c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#541877",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 277.895,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35786,
    "c": 0.15298,
    "h": 309.3
  },
  "luminance": 0.0387
}

Semantic roles & 50–950 ramp

primary
#541877
secondary
#67AC3F
accent
#E93E7D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541877

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

Preview Lab → · Contrast checker → · Palette generator →

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