#541F98#541F98

#541F98 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.180 H 297.0°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#541F98
RGBrgb(84, 31, 152)
HSLhsl(266, 66%, 36%)
HSVhsv(266, 80%, 60%)
CMYKcmyk(44.7%, 79.6%, 0%, 40.4%)
CIE-LABlab(27.11, 48.75, -56.07)
CIE-LCHlch(27.11, 74.30, 311.01°)
OKLaboklab(39.38% 0.0818 -0.1606)
OKLCHoklch(39.38% 0.18 297)
XYZxyz(9.8121, 5.1316, 30.1732)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F98 #63981F
analogous
#1F2698 #541F98 #901F98
triadic
#541F98 #98541F #1F9854
tetradic
#541F98 #981F26 #63981F #1F9890
square
#541F98 #981F26 #63981F #1F9890
split-complementary
#541F98 #98901F #26981F
monochromatic
#1C0A32 #381565 #541F98 #7029CB #9055DC

Accessibility & contrast

On white

10.36
#541F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#541F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F98
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F98#FFFFFF#000000##FFFFFF
##541F981.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#42415B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #541f98;
/* rgb */ color: rgb(84, 31, 152);
/* oklch */ color: oklch(39.4% 0.180 297.0);
Tailwind
colors: {
  custom: {
    50: '#8b61b7',
    500: '#541f98',
    950: '#000000',
  },
}
SCSS
$custom: #541f98;
$custom-light: #8b61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#541f98",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 266.281,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39382,
    "c": 0.18025,
    "h": 297
  },
  "luminance": 0.05132
}

Semantic roles & 50–950 ramp

primary
#541F98
secondary
#90C053
accent
#E93F9E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #541F98

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

Preview Lab → · Contrast checker → · Palette generator →

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