#541BB4#541BB4

#541BB4 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.7% C 0.213 H 290.5°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#541BB4
RGBrgb(84, 27, 180)
HSLhsl(262, 74%, 41%)
HSVhsv(262, 85%, 71%)
CMYKcmyk(53.3%, 85%, 0%, 29.4%)
CIE-LABlab(29.32, 57.45, -69.36)
CIE-LCHlch(29.32, 90.06, 309.63°)
OKLaboklab(41.74% 0.0747 -0.1995)
OKLCHoklch(41.74% 0.213 290.5)
XYZxyz(12.2839, 5.9634, 43.6750)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541BB4 #7BB41B
analogous
#1B2EB4 #541BB4 #A01BB4
triadic
#541BB4 #B4541B #1BB454
tetradic
#541BB4 #B41B2E #7BB41B #1BB4A0
square
#541BB4 #B41B2E #7BB41B #1BB4A0
split-complementary
#541BB4 #B4A01B #2EB41B
monochromatic
#220B4A #3B137F #541BB4 #6F2DDF #9462E7

Accessibility & contrast

On white

9.58
#541BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#541BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541BB4
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541BB4#FFFFFF#000000##FFFFFF
##541BB41.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541bb4;
/* rgb */ color: rgb(84, 27, 180);
/* oklch */ color: oklch(41.7% 0.213 290.5);
Tailwind
colors: {
  custom: {
    50: '#8f62cc',
    500: '#541bb4',
    950: '#000000',
  },
}
SCSS
$custom: #541bb4;
$custom-light: #8f62cc;
$custom-dark: #000000;
JSON
{
  "hex": "#541bb4",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 262.353,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41736,
    "c": 0.21299,
    "h": 290.5
  },
  "luminance": 0.05964
}

Semantic roles & 50–950 ramp

primary
#541BB4
secondary
#A3CC5F
accent
#F137AC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0614
muted
#7E7A82

Preview Lab

Preview with #541BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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