#541FA1#541FA1

#541FA1 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.190 H 294.6°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#541FA1
RGBrgb(84, 31, 161)
HSLhsl(264, 68%, 38%)
HSVhsv(264, 81%, 63%)
CMYKcmyk(47.8%, 80.7%, 0%, 36.9%)
CIE-LABlab(27.95, 51.07, -60.19)
CIE-LCHlch(27.95, 78.94, 310.32°)
OKLaboklab(40.22% 0.079 -0.1727)
OKLCHoklch(40.22% 0.19 294.6)
XYZxyz(10.5774, 5.4377, 34.2036)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541FA1 #6CA11F
analogous
#1F2BA1 #541FA1 #951FA1
triadic
#541FA1 #A1541F #1FA154
tetradic
#541FA1 #A11F2B #6CA11F #1FA195
square
#541FA1 #A11F2B #6CA11F #1FA195
split-complementary
#541FA1 #A1951F #2BA11F
monochromatic
#1E0B3A #39156E #541FA1 #6F29D4 #915BDF

Accessibility & contrast

On white

10.06
#541FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#541FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541FA1
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541FA1#FFFFFF#000000##FFFFFF
##541FA11.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#3D4460
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #541fa1;
/* rgb */ color: rgb(84, 31, 161);
/* oklch */ color: oklch(40.2% 0.190 294.6);
Tailwind
colors: {
  custom: {
    50: '#8c62be',
    500: '#541fa1',
    950: '#000000',
  },
}
SCSS
$custom: #541fa1;
$custom-light: #8c62be;
$custom-dark: #000000;
JSON
{
  "hex": "#541fa1",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 264.462,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40223,
    "c": 0.18988,
    "h": 294.6
  },
  "luminance": 0.05438
}

Semantic roles & 50–950 ramp

primary
#541FA1
secondary
#98C458
accent
#EB3DA4
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #541FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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