#541C7D#541C7D

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

Color values

HEX#541C7D
RGBrgb(84, 28, 125)
HSLhsl(275, 63%, 30%)
HSVhsv(275, 78%, 49%)
CMYKcmyk(32.8%, 77.6%, 0%, 51%)
CIE-LABlab(24.31, 43.28, -43.81)
CIE-LCHlch(24.31, 61.58, 314.65°)
OKLaboklab(36.69% 0.0917 -0.1246)
OKLCHoklch(36.69% 0.155 306.4)
XYZxyz(7.7723, 4.1961, 19.7985)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541C7D #457D1C
analogous
#231C7D #541C7D #7D1C76
triadic
#541C7D #7D541C #1C7D54
tetradic
#541C7D #7D231C #457D1C #1C767D
square
#541C7D #7D231C #457D1C #1C767D
split-complementary
#541C7D #767D1C #1C7D23
monochromatic
#110619 #32114B #541C7D #7627AF #953FD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##541C7D#FFFFFF#000000##FFFFFF
##541C7D1.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)
#003880
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#4D344B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541c7d;
/* rgb */ color: rgb(84, 28, 125);
/* oklch */ color: oklch(36.7% 0.155 306.4);
Tailwind
colors: {
  custom: {
    50: '#895fa3',
    500: '#541c7d',
    950: '#000000',
  },
}
SCSS
$custom: #541c7d;
$custom-light: #895fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#541c7d",
  "rgb": {
    "r": 84,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 274.639,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.36694,
    "c": 0.15466,
    "h": 306.4
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

primary
#541C7D
secondary
#72B144
accent
#E64187
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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