#541B72#541B72

#541B72 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.144 H 311.1°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#541B72
RGBrgb(84, 27, 114)
HSLhsl(279, 62%, 28%)
HSVhsv(279, 76%, 45%)
CMYKcmyk(26.3%, 76.3%, 0%, 55.3%)
CIE-LABlab(23.28, 41.10, -38.45)
CIE-LCHlch(23.28, 56.28, 316.91°)
OKLaboklab(35.69% 0.0948 -0.1088)
OKLCHoklch(35.69% 0.144 311.1)
XYZxyz(7.0848, 3.8838, 16.2928)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B72 #39721B
analogous
#281B72 #541B72 #721B65
triadic
#541B72 #72541B #1B7254
tetradic
#541B72 #72281B #39721B #1B6572
square
#541B72 #72281B #39721B #1B6572
split-complementary
#541B72 #65721B #1B7228
monochromatic
#120619 #300F41 #541B72 #7827A3 #9B38D0

Accessibility & contrast

On white

11.82
#541B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#541B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B72
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B72#FFFFFF#000000##FFFFFF
##541B721.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#0C3870
Tritanopia (blue-blind)
#502F45
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #541b72;
/* rgb */ color: rgb(84, 27, 114);
/* oklch */ color: oklch(35.7% 0.144 311.1);
Tailwind
colors: {
  custom: {
    50: '#885d9b',
    500: '#541b72',
    950: '#000000',
  },
}
SCSS
$custom: #541b72;
$custom-light: #885d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#541b72",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 279.31,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35694,
    "c": 0.14432,
    "h": 311.1
  },
  "luminance": 0.03884
}

Semantic roles & 50–950 ramp

primary
#541B72
secondary
#65A742
accent
#E5437B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #541B72

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

Preview Lab → · Contrast checker → · Palette generator →

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