#541C9E#541C9E

#541C9E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.189 H 295.7°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#541C9E
RGBrgb(84, 28, 158)
HSLhsl(266, 70%, 36%)
HSVhsv(266, 82%, 62%)
CMYKcmyk(46.8%, 82.3%, 0%, 38%)
CIE-LABlab(27.25, 51.50, -59.50)
CIE-LCHlch(27.25, 78.69, 310.87°)
OKLaboklab(39.66% 0.0821 -0.1706)
OKLCHoklch(39.66% 0.189 295.7)
XYZxyz(10.2413, 5.1837, 32.8021)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541C9E #669E1C
analogous
#1C259E #541C9E #951C9E
triadic
#541C9E #9E541C #1C9E54
tetradic
#541C9E #9E1C25 #669E1C #1C9E95
square
#541C9E #9E1C25 #669E1C #1C9E95
split-complementary
#541C9E #9E951C #259E1C
monochromatic
#1D0A36 #38136A #541C9E #7025D2 #9054E1

Accessibility & contrast

On white

10.31
#541C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#541C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541C9E
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541C9E#FFFFFF#000000##FFFFFF
##541C9E1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#3F425E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #541c9e;
/* rgb */ color: rgb(84, 28, 158);
/* oklch */ color: oklch(39.7% 0.189 295.7);
Tailwind
colors: {
  custom: {
    50: '#8c60bc',
    500: '#541c9e',
    950: '#000000',
  },
}
SCSS
$custom: #541c9e;
$custom-light: #8c60bc;
$custom-dark: #000000;
JSON
{
  "hex": "#541c9e",
  "rgb": {
    "r": 84,
    "g": 28,
    "b": 158
  },
  "hsl": {
    "h": 265.846,
    "s": 69.892,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39655,
    "c": 0.18938,
    "h": 295.7
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#541C9E
secondary
#93C452
accent
#ED3BA0
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #541C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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