#541780#541780

#541780 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.163 H 305.8°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#541780
RGBrgb(84, 23, 128)
HSLhsl(275, 70%, 30%)
HSVhsv(275, 82%, 50%)
CMYKcmyk(34.4%, 82%, 0%, 49.8%)
CIE-LABlab(23.86, 46.02, -46.44)
CIE-LCHlch(23.86, 65.38, 314.74°)
OKLaboklab(36.46% 0.0954 -0.1323)
OKLCHoklch(36.46% 0.163 305.8)
XYZxyz(7.8580, 4.0562, 20.7868)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541780 #438017
analogous
#201780 #541780 #801778
triadic
#541780 #805417 #178054
tetradic
#541780 #802017 #438017 #177880
square
#541780 #802017 #438017 #177880
split-complementary
#541780 #788017 #178020
monochromatic
#11051A #320E4C #541780 #7620B4 #9636DB

Accessibility & contrast

On white

11.59
#541780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#541780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541780
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541780#FFFFFF#000000##FFFFFF
##5417801.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#4C334C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541780;
/* rgb */ color: rgb(84, 23, 128);
/* oklch */ color: oklch(36.5% 0.163 305.8);
Tailwind
colors: {
  custom: {
    50: '#895ca6',
    500: '#541780',
    950: '#000000',
  },
}
SCSS
$custom: #541780;
$custom-light: #895ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#541780",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 274.857,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36455,
    "c": 0.16311,
    "h": 305.8
  },
  "luminance": 0.04056
}

Semantic roles & 50–950 ramp

primary
#541780
secondary
#70B43E
accent
#EC3B86
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #541780

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

Preview Lab → · Contrast checker → · Palette generator →

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