#541F97#541F97

#541F97 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.179 H 297.3°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#541F97
RGBrgb(84, 31, 151)
HSLhsl(267, 66%, 36%)
HSVhsv(267, 79%, 59%)
CMYKcmyk(44.4%, 79.5%, 0%, 40.8%)
CIE-LABlab(27.02, 48.49, -55.61)
CIE-LCHlch(27.02, 73.78, 311.09°)
OKLaboklab(39.29% 0.0821 -0.1592)
OKLCHoklch(39.29% 0.179 297.3)
XYZxyz(9.7306, 5.0990, 29.7437)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F97 #62971F
analogous
#1F2697 #541F97 #901F97
triadic
#541F97 #97541F #1F9754
tetradic
#541F97 #971F26 #62971F #1F9790
square
#541F97 #971F26 #62971F #1F9790
split-complementary
#541F97 #97901F #26971F
monochromatic
#1C0A31 #381564 #541F97 #7029CA #9054DC

Accessibility & contrast

On white

10.40
#541F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#541F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F97
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F97#FFFFFF#000000##FFFFFF
##541F971.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#42405B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #541f97;
/* rgb */ color: rgb(84, 31, 151);
/* oklch */ color: oklch(39.3% 0.179 297.3);
Tailwind
colors: {
  custom: {
    50: '#8b61b7',
    500: '#541f97',
    950: '#000000',
  },
}
SCSS
$custom: #541f97;
$custom-light: #8b61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#541f97",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 266.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3929,
    "c": 0.17917,
    "h": 297.3
  },
  "luminance": 0.05099
}

Semantic roles & 50–950 ramp

primary
#541F97
secondary
#8FBF52
accent
#E93F9E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #541F97

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

Preview Lab → · Contrast checker → · Palette generator →

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