#541D7B#541D7B

#541D7B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.151 H 307.0°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#541D7B
RGBrgb(84, 29, 123)
HSLhsl(275, 62%, 30%)
HSVhsv(275, 76%, 48%)
CMYKcmyk(31.7%, 76.4%, 0%, 51.8%)
CIE-LABlab(24.30, 42.35, -42.55)
CIE-LCHlch(24.30, 60.04, 314.87°)
OKLaboklab(36.64% 0.0911 -0.1209)
OKLCHoklch(36.64% 0.151 307)
XYZxyz(7.6699, 4.1937, 19.1405)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541D7B #447B1D
analogous
#251D7B #541D7B #7B1D73
triadic
#541D7B #7B541D #1D7B54
tetradic
#541D7B #7B251D #447B1D #1D737B
square
#541D7B #7B251D #447B1D #1D737B
split-complementary
#541D7B #737B1D #1D7B25
monochromatic
#110619 #321149 #541D7B #7629AD #9640D2

Accessibility & contrast

On white

11.42
#541D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#541D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541D7B
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541D7B#FFFFFF#000000##FFFFFF
##541D7B1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#4D344A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541d7b;
/* rgb */ color: rgb(84, 29, 123);
/* oklch */ color: oklch(36.6% 0.151 307.0);
Tailwind
colors: {
  custom: {
    50: '#885fa2',
    500: '#541d7b',
    950: '#000000',
  },
}
SCSS
$custom: #541d7b;
$custom-light: #885fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#541d7b",
  "rgb": {
    "r": 84,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 275.106,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36638,
    "c": 0.15135,
    "h": 307
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#541D7B
secondary
#71AF45
accent
#E54386
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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