#541EB3#541EB3

#541EB3 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.9% C 0.210 H 290.5°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#541EB3
RGBrgb(84, 30, 179)
HSLhsl(262, 71%, 41%)
HSVhsv(262, 83%, 70%)
CMYKcmyk(53.1%, 83.2%, 0%, 29.8%)
CIE-LABlab(29.58, 56.12, -68.33)
CIE-LCHlch(29.58, 88.42, 309.40°)
OKLaboklab(41.89% 0.0734 -0.1965)
OKLCHoklch(41.89% 0.21 290.5)
XYZxyz(12.2548, 6.0675, 43.1645)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541EB3 #7DB31E
analogous
#1E32B3 #541EB3 #9E1EB3
triadic
#541EB3 #B3541E #1EB354
tetradic
#541EB3 #B31E32 #7DB31E #1EB39E
square
#541EB3 #B31E32 #7DB31E #1EB39E
split-complementary
#541EB3 #B39E1E #32B31E
monochromatic
#230C4A #3B157F #541EB3 #7032DD #9466E5

Accessibility & contrast

On white

9.49
#541EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#541EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541EB3
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541EB3#FFFFFF#000000##FFFFFF
##541EB31.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B7
Deuteranopia (green-blind)
#0042B0
Tritanopia (blue-blind)
#304C6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #541eb3;
/* rgb */ color: rgb(84, 30, 179);
/* oklch */ color: oklch(41.9% 0.210 290.5);
Tailwind
colors: {
  custom: {
    50: '#8f63cb',
    500: '#541eb3',
    950: '#000000',
  },
}
SCSS
$custom: #541eb3;
$custom-light: #8f63cb;
$custom-dark: #000000;
JSON
{
  "hex": "#541eb3",
  "rgb": {
    "r": 84,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 261.745,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41885,
    "c": 0.20976,
    "h": 290.5
  },
  "luminance": 0.06068
}

Semantic roles & 50–950 ramp

primary
#541EB3
secondary
#A5CB62
accent
#EE3AAD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #541EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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