#541F95#541F95

#541F95 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.177 H 297.9°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#541F95
RGBrgb(84, 31, 149)
HSLhsl(267, 66%, 35%)
HSVhsv(267, 79%, 58%)
CMYKcmyk(43.6%, 79.2%, 0%, 41.6%)
CIE-LABlab(26.83, 47.98, -54.67)
CIE-LCHlch(26.83, 72.74, 311.27°)
OKLaboklab(39.11% 0.0827 -0.1565)
OKLCHoklch(39.11% 0.177 297.9)
XYZxyz(9.5695, 5.0345, 28.8955)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F95 #60951F
analogous
#1F2595 #541F95 #8F1F95
triadic
#541F95 #95541F #1F9554
tetradic
#541F95 #951F25 #60951F #1F958F
square
#541F95 #951F25 #60951F #1F958F
split-complementary
#541F95 #958F1F #25951F
monochromatic
#1B0A30 #371462 #541F95 #712AC8 #9053DB

Accessibility & contrast

On white

10.46
#541F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#541F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F95
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F95#FFFFFF#000000##FFFFFF
##541F951.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003E93
Tritanopia (blue-blind)
#433F5A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #541f95;
/* rgb */ color: rgb(84, 31, 149);
/* oklch */ color: oklch(39.1% 0.177 297.9);
Tailwind
colors: {
  custom: {
    50: '#8b61b5',
    500: '#541f95',
    950: '#000000',
  },
}
SCSS
$custom: #541f95;
$custom-light: #8b61b5;
$custom-dark: #000000;
JSON
{
  "hex": "#541f95",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 266.949,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39107,
    "c": 0.17703,
    "h": 297.9
  },
  "luminance": 0.05035
}

Semantic roles & 50–950 ramp

primary
#541F95
secondary
#8DBF51
accent
#E93F9D
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #541F95

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

Preview Lab → · Contrast checker → · Palette generator →

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