#541774#541774

#541774 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.151 H 310.7°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#541774
RGBrgb(84, 23, 116)
HSLhsl(279, 67%, 27%)
HSVhsv(279, 80%, 45%)
CMYKcmyk(27.6%, 80.2%, 0%, 54.5%)
CIE-LABlab(22.86, 43.23, -40.42)
CIE-LCHlch(22.86, 59.19, 316.92°)
OKLaboklab(35.44% 0.0984 -0.1146)
OKLCHoklch(35.44% 0.151 310.7)
XYZxyz(7.1143, 3.7587, 16.8703)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541774 #377417
analogous
#261774 #541774 #741765
triadic
#541774 #745417 #177454
tetradic
#541774 #742617 #377417 #176574
square
#541774 #742617 #377417 #176574
split-complementary
#541774 #657417 #177426
monochromatic
#12051A #2F0D41 #541774 #7921A7 #9D30D6

Accessibility & contrast

On white

11.99
#541774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#541774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541774
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541774#FFFFFF#000000##FFFFFF
##5417741.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#003872
Tritanopia (blue-blind)
#502E45
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #541774;
/* rgb */ color: rgb(84, 23, 116);
/* oklch */ color: oklch(35.4% 0.151 310.7);
Tailwind
colors: {
  custom: {
    50: '#885c9d',
    500: '#541774',
    950: '#000000',
  },
}
SCSS
$custom: #541774;
$custom-light: #885c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#541774",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 279.355,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35443,
    "c": 0.15106,
    "h": 310.7
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#541774
secondary
#63A93D
accent
#EA3E79
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541774

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

Preview Lab → · Contrast checker → · Palette generator →

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