#541787#541787

#541787 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.170 H 303.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#541787
RGBrgb(84, 23, 135)
HSLhsl(273, 71%, 31%)
HSVhsv(273, 83%, 53%)
CMYKcmyk(37.8%, 83%, 0%, 47.1%)
CIE-LABlab(24.47, 47.69, -49.84)
CIE-LCHlch(24.47, 68.98, 313.74°)
OKLaboklab(37.07% 0.0934 -0.1423)
OKLCHoklch(37.07% 0.17 303.3)
XYZxyz(8.3347, 4.2469, 23.2976)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541787 #4A8717
analogous
#1C1787 #541787 #871782
triadic
#541787 #875417 #178754
tetradic
#541787 #871C17 #4A8717 #178287
square
#541787 #871C17 #4A8717 #178287
split-complementary
#541787 #828717 #17871C
monochromatic
#13051E #330E53 #541787 #7520BB #933BDE

Accessibility & contrast

On white

11.36
#541787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#541787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541787
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541787#FFFFFF#000000##FFFFFF
##5417871.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#493650
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541787;
/* rgb */ color: rgb(84, 23, 135);
/* oklch */ color: oklch(37.1% 0.170 303.3);
Tailwind
colors: {
  custom: {
    50: '#8a5dab',
    500: '#541787',
    950: '#000000',
  },
}
SCSS
$custom: #541787;
$custom-light: #8a5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#541787",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 272.679,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37074,
    "c": 0.17018,
    "h": 303.3
  },
  "luminance": 0.04247
}

Semantic roles & 50–950 ramp

primary
#541787
secondary
#77BB3F
accent
#EE3A8C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541787

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

Preview Lab → · Contrast checker → · Palette generator →

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