#541F72#541F72

#541F72 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.139 H 310.5°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#541F72
RGBrgb(84, 31, 114)
HSLhsl(278, 57%, 28%)
HSVhsv(278, 73%, 45%)
CMYKcmyk(26.3%, 72.8%, 0%, 55.3%)
CIE-LABlab(23.93, 39.26, -37.40)
CIE-LCHlch(23.93, 54.22, 316.39°)
OKLaboklab(36.16% 0.0904 -0.1057)
OKLCHoklch(36.16% 0.139 310.5)
XYZxyz(7.1828, 4.0799, 16.3254)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F72 #3D721F
analogous
#2A1F72 #541F72 #721F66
triadic
#541F72 #72541F #1F7254
tetradic
#541F72 #722A1F #3D721F #1F6672
square
#541F72 #722A1F #3D721F #1F6672
split-complementary
#541F72 #66721F #1F722A
monochromatic
#120718 #311242 #541F72 #772CA2 #9940CB

Accessibility & contrast

On white

11.56
#541F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541F72
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F72#FFFFFF#000000##FFFFFF
##541F721.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#123A70
Tritanopia (blue-blind)
#503146
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541f72;
/* rgb */ color: rgb(84, 31, 114);
/* oklch */ color: oklch(36.2% 0.139 310.5);
Tailwind
colors: {
  custom: {
    50: '#87609b',
    500: '#541f72',
    950: '#000000',
  },
}
SCSS
$custom: #541f72;
$custom-light: #87609b;
$custom-dark: #000000;
JSON
{
  "hex": "#541f72",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 278.313,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36157,
    "c": 0.1391,
    "h": 310.5
  },
  "luminance": 0.0408
}

Semantic roles & 50–950 ramp

primary
#541F72
secondary
#69A647
accent
#E0477F
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #541F72

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

Preview Lab → · Contrast checker → · Palette generator →

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