#541779#541779

#541779 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.156 H 308.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#541779
RGBrgb(84, 23, 121)
HSLhsl(277, 68%, 28%)
HSVhsv(277, 81%, 47%)
CMYKcmyk(30.6%, 81%, 0%, 52.5%)
CIE-LABlab(23.26, 44.38, -42.96)
CIE-LCHlch(23.26, 61.77, 315.93°)
OKLaboklab(35.86% 0.0973 -0.122)
OKLCHoklch(35.86% 0.156 308.6)
XYZxyz(7.4130, 3.8782, 18.4435)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541779 #3C7917
analogous
#231779 #541779 #79176D
triadic
#541779 #795417 #177954
tetradic
#541779 #792317 #3C7917 #176D79
square
#541779 #792317 #3C7917 #176D79
split-complementary
#541779 #6D7917 #177923
monochromatic
#12051A #300D46 #541779 #7821AC #9932D8

Accessibility & contrast

On white

11.83
#541779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#541779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541779
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541779#FFFFFF#000000##FFFFFF
##5417791.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#4E3048
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #541779;
/* rgb */ color: rgb(84, 23, 121);
/* oklch */ color: oklch(35.9% 0.156 308.6);
Tailwind
colors: {
  custom: {
    50: '#885ca0',
    500: '#541779',
    950: '#000000',
  },
}
SCSS
$custom: #541779;
$custom-light: #885ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#541779",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 277.347,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35857,
    "c": 0.15607,
    "h": 308.6
  },
  "luminance": 0.03878
}

Semantic roles & 50–950 ramp

primary
#541779
secondary
#68AE3E
accent
#EB3D7F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #541779

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

Preview Lab → · Contrast checker → · Palette generator →

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