#541B7D#541B7D

#541B7D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.156 H 306.5°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#541B7D
RGBrgb(84, 27, 125)
HSLhsl(275, 64%, 30%)
HSVhsv(275, 78%, 49%)
CMYKcmyk(32.8%, 78.4%, 0%, 51%)
CIE-LABlab(24.16, 43.71, -44.05)
CIE-LCHlch(24.16, 62.05, 314.77°)
OKLaboklab(36.59% 0.0926 -0.1253)
OKLCHoklch(36.59% 0.156 306.5)
XYZxyz(7.7490, 4.1494, 19.7908)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B7D #447D1B
analogous
#231B7D #541B7D #7D1B75
triadic
#541B7D #7D541B #1B7D54
tetradic
#541B7D #7D231B #447D1B #1B757D
square
#541B7D #7D231B #447D1B #1B757D
split-complementary
#541B7D #757D1B #1B7D23
monochromatic
#110519 #32104B #541B7D #7626AF #963DD5

Accessibility & contrast

On white

11.48
#541B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#541B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B7D
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B7D#FFFFFF#000000##FFFFFF
##541B7D1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#4D334B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541b7d;
/* rgb */ color: rgb(84, 27, 125);
/* oklch */ color: oklch(36.6% 0.156 306.5);
Tailwind
colors: {
  custom: {
    50: '#895ea3',
    500: '#541b7d',
    950: '#000000',
  },
}
SCSS
$custom: #541b7d;
$custom-light: #895ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#541b7d",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 274.898,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36589,
    "c": 0.1558,
    "h": 306.5
  },
  "luminance": 0.04149
}

Semantic roles & 50–950 ramp

primary
#541B7D
secondary
#71B143
accent
#E74086
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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