#541EB4#541EB4

#541EB4 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 42.0% C 0.211 H 290.3°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#541EB4
RGBrgb(84, 30, 180)
HSLhsl(262, 71%, 41%)
HSVhsv(262, 83%, 71%)
CMYKcmyk(53.3%, 83.3%, 0%, 29.4%)
CIE-LABlab(29.68, 56.38, -68.76)
CIE-LCHlch(29.68, 88.92, 309.35°)
OKLaboklab(41.99% 0.0731 -0.1977)
OKLCHoklch(41.99% 0.211 290.3)
XYZxyz(12.3563, 6.1081, 43.6991)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541EB4 #7EB41E
analogous
#1E33B4 #541EB4 #9F1EB4
triadic
#541EB4 #B4541E #1EB454
tetradic
#541EB4 #B41E33 #7EB41E #1EB49F
square
#541EB4 #B41E33 #7EB41E #1EB49F
split-complementary
#541EB4 #B49F1E #33B41E
monochromatic
#230D4B #3C1580 #541EB4 #7032DD #9467E6

Accessibility & contrast

On white

9.45
#541EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#541EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541EB4
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541EB4#FFFFFF#000000##FFFFFF
##541EB41.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B8
Deuteranopia (green-blind)
#0042B1
Tritanopia (blue-blind)
#2F4C6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #541eb4;
/* rgb */ color: rgb(84, 30, 180);
/* oklch */ color: oklch(42.0% 0.211 290.3);
Tailwind
colors: {
  custom: {
    50: '#8f63cc',
    500: '#541eb4',
    950: '#000000',
  },
}
SCSS
$custom: #541eb4;
$custom-light: #8f63cc;
$custom-dark: #000000;
JSON
{
  "hex": "#541eb4",
  "rgb": {
    "r": 84,
    "g": 30,
    "b": 180
  },
  "hsl": {
    "h": 261.6,
    "s": 71.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41985,
    "c": 0.2108,
    "h": 290.3
  },
  "luminance": 0.06109
}

Semantic roles & 50–950 ramp

primary
#541EB4
secondary
#A5CB63
accent
#EE3AAD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0614
muted
#7E7A82

Preview Lab

Preview with #541EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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