#541F8F#541F8F

#541F8F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.171 H 299.7°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#541F8F
RGBrgb(84, 31, 143)
HSLhsl(268, 64%, 34%)
HSVhsv(268, 78%, 56%)
CMYKcmyk(41.3%, 78.3%, 0%, 43.9%)
CIE-LABlab(26.30, 46.45, -51.85)
CIE-LCHlch(26.30, 69.61, 311.86°)
OKLaboklab(38.57% 0.0844 -0.1482)
OKLCHoklch(38.57% 0.171 299.7)
XYZxyz(9.1028, 4.8479, 26.4374)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F8F #5A8F1F
analogous
#1F228F #541F8F #8C1F8F
triadic
#541F8F #8F541F #1F8F54
tetradic
#541F8F #8F1F22 #5A8F1F #1F8F8C
square
#541F8F #8F1F22 #5A8F1F #1F8F8C
split-complementary
#541F8F #8F8C1F #228F1F
monochromatic
#19092A #36145D #541F8F #722AC1 #914FD9

Accessibility & contrast

On white

10.66
#541F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#541F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F8F
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F8F#FFFFFF#000000##FFFFFF
##541F8F1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#463D56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #541f8f;
/* rgb */ color: rgb(84, 31, 143);
/* oklch */ color: oklch(38.6% 0.171 299.7);
Tailwind
colors: {
  custom: {
    50: '#8a61b1',
    500: '#541f8f',
    950: '#000000',
  },
}
SCSS
$custom: #541f8f;
$custom-light: #8a61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#541f8f",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 268.393,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38567,
    "c": 0.17056,
    "h": 299.7
  },
  "luminance": 0.04848
}

Semantic roles & 50–950 ramp

primary
#541F8F
secondary
#88BC4E
accent
#E74098
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #541F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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