#541A7C#541A7C

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

Color values

HEX#541A7C
RGBrgb(84, 26, 124)
HSLhsl(276, 65%, 29%)
HSVhsv(276, 79%, 49%)
CMYKcmyk(32.3%, 79%, 0%, 51.4%)
CIE-LABlab(23.93, 43.89, -43.79)
CIE-LCHlch(23.93, 62.00, 315.06°)
OKLaboklab(36.4% 0.0938 -0.1245)
OKLCHoklch(36.4% 0.156 307)
XYZxyz(7.6629, 4.0789, 19.4485)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A7C #427C1A
analogous
#231A7C #541A7C #7C1A73
triadic
#541A7C #7C541A #1A7C54
tetradic
#541A7C #7C231A #427C1A #1A737C
square
#541A7C #7C231A #427C1A #1A737C
split-complementary
#541A7C #737C1A #1A7C23
monochromatic
#110519 #320F49 #541A7C #7625AF #963BD6

Accessibility & contrast

On white

11.57
#541A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#541A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A7C
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A7C#FFFFFF#000000##FFFFFF
##541A7C1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#4D324A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541a7c;
/* rgb */ color: rgb(84, 26, 124);
/* oklch */ color: oklch(36.4% 0.156 307.0);
Tailwind
colors: {
  custom: {
    50: '#895ea3',
    500: '#541a7c',
    950: '#000000',
  },
}
SCSS
$custom: #541a7c;
$custom-light: #895ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#541a7c",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 275.51,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36402,
    "c": 0.15588,
    "h": 307
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#541A7C
secondary
#6FB042
accent
#E84084
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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