#541B71#541B71

#541B71 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.143 H 311.5°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#541B71
RGBrgb(84, 27, 113)
HSLhsl(280, 61%, 27%)
HSVhsv(280, 76%, 44%)
CMYKcmyk(25.7%, 76.1%, 0%, 55.7%)
CIE-LABlab(23.21, 40.87, -37.93)
CIE-LCHlch(23.21, 55.76, 317.14°)
OKLaboklab(35.62% 0.095 -0.1073)
OKLCHoklch(35.62% 0.143 311.5)
XYZxyz(7.0282, 3.8611, 15.9946)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B71 #38711B
analogous
#291B71 #541B71 #711B63
triadic
#541B71 #71541B #1B7154
tetradic
#541B71 #71291B #38711B #1B6371
square
#541B71 #71291B #38711B #1B6371
split-complementary
#541B71 #63711B #1B7129
monochromatic
#120619 #2F0F40 #541B71 #7927A2 #9C37CF

Accessibility & contrast

On white

11.85
#541B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#541B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B71
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B71#FFFFFF#000000##FFFFFF
##541B711.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#0E386F
Tritanopia (blue-blind)
#502E44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #541b71;
/* rgb */ color: rgb(84, 27, 113);
/* oklch */ color: oklch(35.6% 0.143 311.5);
Tailwind
colors: {
  custom: {
    50: '#885d9a',
    500: '#541b71',
    950: '#000000',
  },
}
SCSS
$custom: #541b71;
$custom-light: #885d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#541b71",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 279.767,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35616,
    "c": 0.14328,
    "h": 311.5
  },
  "luminance": 0.03861
}

Semantic roles & 50–950 ramp

primary
#541B71
secondary
#64A642
accent
#E5437A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #541B71

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

Preview Lab → · Contrast checker → · Palette generator →

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