#541FB4#541FB4

#541FB4 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.1% C 0.210 H 290.2°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#541FB4
RGBrgb(84, 31, 180)
HSLhsl(261, 71%, 41%)
HSVhsv(261, 83%, 71%)
CMYKcmyk(53.3%, 82.8%, 0%, 29.4%)
CIE-LABlab(29.81, 56.00, -68.55)
CIE-LCHlch(29.81, 88.52, 309.25°)
OKLaboklab(42.07% 0.0725 -0.1971)
OKLCHoklch(42.07% 0.21 290.2)
XYZxyz(12.3820, 6.1595, 43.7077)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541FB4 #7FB41F
analogous
#1F35B4 #541FB4 #9F1FB4
triadic
#541FB4 #B4541F #1FB454
tetradic
#541FB4 #B41F35 #7FB41F #1FB49F
square
#541FB4 #B41F35 #7FB41F #1FB49F
split-complementary
#541FB4 #B49F1F #35B41F
monochromatic
#230D4C #3C1680 #541FB4 #7034DC #9568E5

Accessibility & contrast

On white

9.41
#541FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#541FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541FB4
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541FB4#FFFFFF#000000##FFFFFF
##541FB41.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B8
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#2F4C6C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #541fb4;
/* rgb */ color: rgb(84, 31, 180);
/* oklch */ color: oklch(42.1% 0.210 290.2);
Tailwind
colors: {
  custom: {
    50: '#8f63cc',
    500: '#541fb4',
    950: '#000000',
  },
}
SCSS
$custom: #541fb4;
$custom-light: #8f63cc;
$custom-dark: #000000;
JSON
{
  "hex": "#541fb4",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 261.342,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42073,
    "c": 0.21004,
    "h": 290.2
  },
  "luminance": 0.0616
}

Semantic roles & 50–950 ramp

primary
#541FB4
secondary
#A6CB64
accent
#ED3AAE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0614
muted
#7E7A82

Preview Lab

Preview with #541FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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