#541B7C#541B7C

#541B7C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.155 H 306.9°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#541B7C
RGBrgb(84, 27, 124)
HSLhsl(275, 64%, 30%)
HSVhsv(275, 78%, 49%)
CMYKcmyk(32.3%, 78.2%, 0%, 51.4%)
CIE-LABlab(24.08, 43.47, -43.55)
CIE-LCHlch(24.08, 61.53, 314.94°)
OKLaboklab(36.5% 0.0929 -0.1238)
OKLCHoklch(36.5% 0.155 306.9)
XYZxyz(7.6854, 4.1240, 19.4560)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B7C #437C1B
analogous
#241B7C #541B7C #7C1B73
triadic
#541B7C #7C541B #1B7C54
tetradic
#541B7C #7C241B #437C1B #1B737C
square
#541B7C #7C241B #437C1B #1B737C
split-complementary
#541B7C #737C1B #1B7C24
monochromatic
#110519 #32104A #541B7C #7626AE #963DD5

Accessibility & contrast

On white

11.51
#541B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541B7C
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B7C#FFFFFF#000000##FFFFFF
##541B7C1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#4D334A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541b7c;
/* rgb */ color: rgb(84, 27, 124);
/* oklch */ color: oklch(36.5% 0.155 306.9);
Tailwind
colors: {
  custom: {
    50: '#885ea3',
    500: '#541b7c',
    950: '#000000',
  },
}
SCSS
$custom: #541b7c;
$custom-light: #885ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#541b7c",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 275.258,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36505,
    "c": 0.15476,
    "h": 306.9
  },
  "luminance": 0.04124
}

Semantic roles & 50–950 ramp

primary
#541B7C
secondary
#70B043
accent
#E74185
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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