#541785#541785

#541785 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.168 H 304.0°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#541785
RGBrgb(84, 23, 133)
HSLhsl(273, 71%, 31%)
HSVhsv(273, 83%, 52%)
CMYKcmyk(36.8%, 82.7%, 0%, 47.8%)
CIE-LABlab(24.29, 47.21, -48.88)
CIE-LCHlch(24.29, 67.96, 314.01°)
OKLaboklab(36.9% 0.094 -0.1394)
OKLCHoklch(36.9% 0.168 304)
XYZxyz(8.1952, 4.1911, 22.5630)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541785 #488517
analogous
#1D1785 #541785 #85177F
triadic
#541785 #855417 #178554
tetradic
#541785 #851D17 #488517 #177F85
square
#541785 #851D17 #488517 #177F85
split-complementary
#541785 #7F8517 #17851D
monochromatic
#12051D #330E51 #541785 #7520B9 #943ADD

Accessibility & contrast

On white

11.42
#541785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#541785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541785
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541785#FFFFFF#000000##FFFFFF
##5417851.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003A83
Tritanopia (blue-blind)
#4A354F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541785;
/* rgb */ color: rgb(84, 23, 133);
/* oklch */ color: oklch(36.9% 0.168 304.0);
Tailwind
colors: {
  custom: {
    50: '#8a5da9',
    500: '#541785',
    950: '#000000',
  },
}
SCSS
$custom: #541785;
$custom-light: #8a5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#541785",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 273.273,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36895,
    "c": 0.16816,
    "h": 304
  },
  "luminance": 0.04191
}

Semantic roles & 50–950 ramp

primary
#541785
secondary
#75B93F
accent
#ED3B8A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541785

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

Preview Lab → · Contrast checker → · Palette generator →

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