#541D7E#541D7E

#541D7E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.155 H 305.8°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#541D7E
RGBrgb(84, 29, 126)
HSLhsl(274, 63%, 30%)
HSVhsv(274, 77%, 49%)
CMYKcmyk(33.3%, 77%, 0%, 50.6%)
CIE-LABlab(24.54, 43.08, -44.06)
CIE-LCHlch(24.54, 61.62, 314.36°)
OKLaboklab(36.89% 0.0905 -0.1253)
OKLCHoklch(36.89% 0.155 305.8)
XYZxyz(7.8606, 4.2700, 20.1447)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541D7E #477E1D
analogous
#241D7E #541D7E #7E1D77
triadic
#541D7E #7E541D #1D7E54
tetradic
#541D7E #7E241D #477E1D #1D777E
square
#541D7E #7E241D #477E1D #1D777E
split-complementary
#541D7E #777E1D #1D7E24
monochromatic
#12061B #33124C #541D7E #7528B0 #9442D3

Accessibility & contrast

On white

11.33
#541D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#541D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541D7E
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541D7E#FFFFFF#000000##FFFFFF
##541D7E1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#4C354C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541d7e;
/* rgb */ color: rgb(84, 29, 126);
/* oklch */ color: oklch(36.9% 0.155 305.8);
Tailwind
colors: {
  custom: {
    50: '#895fa4',
    500: '#541d7e',
    950: '#000000',
  },
}
SCSS
$custom: #541d7e;
$custom-light: #895fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#541d7e",
  "rgb": {
    "r": 84,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 274.021,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36886,
    "c": 0.15455,
    "h": 305.8
  },
  "luminance": 0.0427
}

Semantic roles & 50–950 ramp

primary
#541D7E
secondary
#74B145
accent
#E64289
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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