#541F9E#541F9E

#541F9E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.187 H 295.4°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#541F9E
RGBrgb(84, 31, 158)
HSLhsl(265, 67%, 37%)
HSVhsv(265, 80%, 62%)
CMYKcmyk(46.8%, 80.4%, 0%, 38%)
CIE-LABlab(27.66, 50.30, -58.83)
CIE-LCHlch(27.66, 77.40, 310.53°)
OKLaboklab(39.94% 0.08 -0.1687)
OKLCHoklch(39.94% 0.187 295.4)
XYZxyz(10.3160, 5.3331, 32.8270)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F9E #699E1F
analogous
#1F2A9E #541F9E #941F9E
triadic
#541F9E #9E541F #1F9E54
tetradic
#541F9E #9E1F2A #699E1F #1F9E94
square
#541F9E #9E1F2A #699E1F #1F9E94
split-complementary
#541F9E #9E941F #2A9E1F
monochromatic
#1E0B38 #39156B #541F9E #6F29D1 #9159DE

Accessibility & contrast

On white

10.16
#541F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#541F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F9E
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F9E#FFFFFF#000000##FFFFFF
##541F9E1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#3F435F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #541f9e;
/* rgb */ color: rgb(84, 31, 158);
/* oklch */ color: oklch(39.9% 0.187 295.4);
Tailwind
colors: {
  custom: {
    50: '#8c62bc',
    500: '#541f9e',
    950: '#000000',
  },
}
SCSS
$custom: #541f9e;
$custom-light: #8c62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#541f9e",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 265.039,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3994,
    "c": 0.18667,
    "h": 295.4
  },
  "luminance": 0.05333
}

Semantic roles & 50–950 ramp

primary
#541F9E
secondary
#95C256
accent
#EA3EA2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #541F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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