#541B74#541B74

#541B74 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.146 H 310.2°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#541B74
RGBrgb(84, 27, 116)
HSLhsl(278, 62%, 28%)
HSVhsv(278, 77%, 45%)
CMYKcmyk(27.6%, 76.7%, 0%, 54.5%)
CIE-LABlab(23.44, 41.57, -39.48)
CIE-LCHlch(23.44, 57.33, 316.47°)
OKLaboklab(35.85% 0.0945 -0.1118)
OKLCHoklch(35.85% 0.146 310.2)
XYZxyz(7.1999, 3.9298, 16.8989)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B74 #3B741B
analogous
#271B74 #541B74 #741B67
triadic
#541B74 #74541B #1B7454
tetradic
#541B74 #74271B #3B741B #1B6774
square
#541B74 #74271B #3B741B #1B6774
split-complementary
#541B74 #67741B #1B7427
monochromatic
#120619 #300F42 #541B74 #7827A6 #9A39D1

Accessibility & contrast

On white

11.76
#541B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#541B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B74
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B74#FFFFFF#000000##FFFFFF
##541B741.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#073972
Tritanopia (blue-blind)
#503046
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #541b74;
/* rgb */ color: rgb(84, 27, 116);
/* oklch */ color: oklch(35.9% 0.146 310.2);
Tailwind
colors: {
  custom: {
    50: '#885e9d',
    500: '#541b74',
    950: '#000000',
  },
}
SCSS
$custom: #541b74;
$custom-light: #885e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#541b74",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 278.427,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35853,
    "c": 0.14641,
    "h": 310.2
  },
  "luminance": 0.0393
}

Semantic roles & 50–950 ramp

primary
#541B74
secondary
#67A942
accent
#E5427D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #541B74

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

Preview Lab → · Contrast checker → · Palette generator →

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