#541FA6#541FA6

#541FA6 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.195 H 293.3°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#541FA6
RGBrgb(84, 31, 166)
HSLhsl(264, 69%, 39%)
HSVhsv(264, 81%, 65%)
CMYKcmyk(49.4%, 81.3%, 0%, 34.9%)
CIE-LABlab(28.43, 52.37, -62.43)
CIE-LCHlch(28.43, 81.49, 309.99°)
OKLaboklab(40.7% 0.0773 -0.1792)
OKLCHoklch(40.7% 0.195 293.3)
XYZxyz(11.0272, 5.6176, 36.5723)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541FA6 #71A61F
analogous
#1F2DA6 #541FA6 #971FA6
triadic
#541FA6 #A6541F #1FA654
tetradic
#541FA6 #A61F2D #71A61F #1FA697
square
#541FA6 #A61F2D #71A61F #1FA697
split-complementary
#541FA6 #A6971F #2DA61F
monochromatic
#200C3F #3A1572 #541FA6 #6F2BD7 #925EE1

Accessibility & contrast

On white

9.89
#541FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#541FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541FA6
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541FA6#FFFFFF#000000##FFFFFF
##541FA61.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0041A4
Tritanopia (blue-blind)
#3A4663
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #541fa6;
/* rgb */ color: rgb(84, 31, 166);
/* oklch */ color: oklch(40.7% 0.195 293.3);
Tailwind
colors: {
  custom: {
    50: '#8d62c2',
    500: '#541fa6',
    950: '#000000',
  },
}
SCSS
$custom: #541fa6;
$custom-light: #8d62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#541fa6",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 263.556,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40701,
    "c": 0.1952,
    "h": 293.3
  },
  "luminance": 0.05618
}

Semantic roles & 50–950 ramp

primary
#541FA6
secondary
#9CC55B
accent
#EB3CA7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #541FA6

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

Preview Lab → · Contrast checker → · Palette generator →

#541FA6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva