#541990#541990

#541990 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.178 H 300.1°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#541990
RGBrgb(84, 25, 144)
HSLhsl(270, 70%, 33%)
HSVhsv(270, 83%, 56%)
CMYKcmyk(41.7%, 82.6%, 0%, 43.5%)
CIE-LABlab(25.54, 49.14, -53.70)
CIE-LCHlch(25.54, 72.79, 312.46°)
OKLaboklab(38.07% 0.089 -0.1536)
OKLCHoklch(38.07% 0.178 300.1)
XYZxyz(9.0366, 4.5936, 26.7907)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541990 #559019
analogous
#191990 #541990 #8F1990
triadic
#541990 #905419 #199054
tetradic
#541990 #901919 #559019 #19908F
square
#541990 #901919 #559019 #19908F
split-complementary
#541990 #908F19 #199019
monochromatic
#170728 #36105C #541990 #7222C4 #9145DF

Accessibility & contrast

On white

10.94
#541990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#541990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541990
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541990#FFFFFF#000000##FFFFFF
##5419901.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#003C8E
Tritanopia (blue-blind)
#463B55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #541990;
/* rgb */ color: rgb(84, 25, 144);
/* oklch */ color: oklch(38.1% 0.178 300.1);
Tailwind
colors: {
  custom: {
    50: '#8b5eb1',
    500: '#541990',
    950: '#000000',
  },
}
SCSS
$custom: #541990;
$custom-light: #8b5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#541990",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 269.748,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3807,
    "c": 0.17751,
    "h": 300.1
  },
  "luminance": 0.04594
}

Semantic roles & 50–950 ramp

primary
#541990
secondary
#83C045
accent
#ED3B95
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #541990

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

Preview Lab → · Contrast checker → · Palette generator →

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