#541F96#541F96

#541F96 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.178 H 297.6°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#541F96
RGBrgb(84, 31, 150)
HSLhsl(267, 66%, 35%)
HSVhsv(267, 79%, 59%)
CMYKcmyk(44%, 79.3%, 0%, 41.2%)
CIE-LABlab(26.92, 48.24, -55.14)
CIE-LCHlch(26.92, 73.26, 311.18°)
OKLaboklab(39.2% 0.0824 -0.1579)
OKLCHoklch(39.2% 0.178 297.6)
XYZxyz(9.6497, 5.0666, 29.3178)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F96 #61961F
analogous
#1F2596 #541F96 #8F1F96
triadic
#541F96 #96541F #1F9654
tetradic
#541F96 #961F25 #61961F #1F968F
square
#541F96 #961F25 #61961F #1F968F
split-complementary
#541F96 #968F1F #25961F
monochromatic
#1B0A31 #381563 #541F96 #7029C9 #9054DC

Accessibility & contrast

On white

10.43
#541F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541F96
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F96#FFFFFF#000000##FFFFFF
##541F961.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#43405A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #541f96;
/* rgb */ color: rgb(84, 31, 150);
/* oklch */ color: oklch(39.2% 0.178 297.6);
Tailwind
colors: {
  custom: {
    50: '#8b61b6',
    500: '#541f96',
    950: '#000000',
  },
}
SCSS
$custom: #541f96;
$custom-light: #8b61b6;
$custom-dark: #000000;
JSON
{
  "hex": "#541f96",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 266.723,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39199,
    "c": 0.1781,
    "h": 297.6
  },
  "luminance": 0.05067
}

Semantic roles & 50–950 ramp

primary
#541F96
secondary
#8EBF52
accent
#E93F9D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #541F96

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

Preview Lab → · Contrast checker → · Palette generator →

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