#541F9B#541F9B

#541F9B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.183 H 296.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#541F9B
RGBrgb(84, 31, 155)
HSLhsl(266, 67%, 36%)
HSVhsv(266, 80%, 61%)
CMYKcmyk(45.8%, 80%, 0%, 39.2%)
CIE-LABlab(27.38, 49.52, -57.45)
CIE-LCHlch(27.38, 75.85, 310.76°)
OKLaboklab(39.66% 0.0809 -0.1647)
OKLCHoklch(39.66% 0.183 296.2)
XYZxyz(10.0610, 5.2311, 31.4836)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F9B #669B1F
analogous
#1F289B #541F9B #921F9B
triadic
#541F9B #9B541F #1F9B54
tetradic
#541F9B #9B1F28 #669B1F #1F9B92
square
#541F9B #9B1F28 #669B1F #1F9B92
split-complementary
#541F9B #9B921F #289B1F
monochromatic
#1D0B35 #381568 #541F9B #7029CE #9057DD

Accessibility & contrast

On white

10.26
#541F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#541F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F9B
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F9B#FFFFFF#000000##FFFFFF
##541F9B1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#40425D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #541f9b;
/* rgb */ color: rgb(84, 31, 155);
/* oklch */ color: oklch(39.7% 0.183 296.2);
Tailwind
colors: {
  custom: {
    50: '#8c62ba',
    500: '#541f9b',
    950: '#000000',
  },
}
SCSS
$custom: #541f9b;
$custom-light: #8c62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#541f9b",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 265.645,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3966,
    "c": 0.18346,
    "h": 296.2
  },
  "luminance": 0.05231
}

Semantic roles & 50–950 ramp

primary
#541F9B
secondary
#93C155
accent
#EA3EA0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #541F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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