#541CB4#541CB4

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

Color values

HEX#541CB4
RGBrgb(84, 28, 180)
HSLhsl(262, 73%, 41%)
HSVhsv(262, 84%, 71%)
CMYKcmyk(53.3%, 84.4%, 0%, 29.4%)
CIE-LABlab(29.44, 57.10, -69.17)
CIE-LCHlch(29.44, 89.69, 309.54°)
OKLaboklab(41.82% 0.0742 -0.1989)
OKLCHoklch(41.82% 0.212 290.5)
XYZxyz(12.3072, 6.0101, 43.6827)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541CB4 #7CB41C
analogous
#1C30B4 #541CB4 #A01CB4
triadic
#541CB4 #B4541C #1CB454
tetradic
#541CB4 #B41C30 #7CB41C #1CB4A0
square
#541CB4 #B41C30 #7CB41C #1CB4A0
split-complementary
#541CB4 #B4A01C #30B41C
monochromatic
#230C4A #3B147F #541CB4 #6F2FDF #9464E7

Accessibility & contrast

On white

9.54
#541CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#541CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541CB4
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541CB4#FFFFFF#000000##FFFFFF
##541CB41.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.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: #541cb4;
/* rgb */ color: rgb(84, 28, 180);
/* oklch */ color: oklch(41.8% 0.212 290.5);
Tailwind
colors: {
  custom: {
    50: '#8f62cc',
    500: '#541cb4',
    950: '#000000',
  },
}
SCSS
$custom: #541cb4;
$custom-light: #8f62cc;
$custom-dark: #000000;
JSON
{
  "hex": "#541cb4",
  "rgb": {
    "r": 84,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 262.105,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41817,
    "c": 0.21228,
    "h": 290.5
  },
  "luminance": 0.06011
}

Semantic roles & 50–950 ramp

primary
#541CB4
secondary
#A4CC60
accent
#F038AC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0614
muted
#7E7A82

Preview Lab

Preview with #541CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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