#541FA5#541FA5

#541FA5 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.194 H 293.6°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#541FA5
RGBrgb(84, 31, 165)
HSLhsl(264, 68%, 38%)
HSVhsv(264, 81%, 65%)
CMYKcmyk(49.1%, 81.2%, 0%, 35.3%)
CIE-LABlab(28.33, 52.11, -61.98)
CIE-LCHlch(28.33, 80.98, 310.05°)
OKLaboklab(40.61% 0.0777 -0.1779)
OKLCHoklch(40.61% 0.194 293.6)
XYZxyz(10.9358, 5.5810, 36.0911)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541FA5 #70A51F
analogous
#1F2DA5 #541FA5 #971FA5
triadic
#541FA5 #A5541F #1FA554
tetradic
#541FA5 #A51F2D #70A51F #1FA597
square
#541FA5 #A51F2D #70A51F #1FA597
split-complementary
#541FA5 #A5971F #2DA51F
monochromatic
#200C3E #3A1571 #541FA5 #6F2AD7 #925EE1

Accessibility & contrast

On white

9.92
#541FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541FA5
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541FA5#FFFFFF#000000##FFFFFF
##541FA51.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0040A3
Tritanopia (blue-blind)
#3A4663
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #541fa5;
/* rgb */ color: rgb(84, 31, 165);
/* oklch */ color: oklch(40.6% 0.194 293.6);
Tailwind
colors: {
  custom: {
    50: '#8d62c1',
    500: '#541fa5',
    950: '#000000',
  },
}
SCSS
$custom: #541fa5;
$custom-light: #8d62c1;
$custom-dark: #000000;
JSON
{
  "hex": "#541fa5",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 263.731,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40605,
    "c": 0.19415,
    "h": 293.6
  },
  "luminance": 0.05581
}

Semantic roles & 50–950 ramp

primary
#541FA5
secondary
#9BC55B
accent
#EB3DA6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #541FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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