#541F9F#541F9F

#541F9F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.188 H 295.1°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#541F9F
RGBrgb(84, 31, 159)
HSLhsl(265, 67%, 37%)
HSVhsv(265, 81%, 62%)
CMYKcmyk(47.2%, 80.5%, 0%, 37.6%)
CIE-LABlab(27.76, 50.56, -59.28)
CIE-LCHlch(27.76, 77.91, 310.46°)
OKLaboklab(40.03% 0.0796 -0.17)
OKLCHoklch(40.03% 0.188 295.1)
XYZxyz(10.4025, 5.3677, 33.2822)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F9F #6A9F1F
analogous
#1F2A9F #541F9F #941F9F
triadic
#541F9F #9F541F #1F9F54
tetradic
#541F9F #9F1F2A #6A9F1F #1F9F94
square
#541F9F #9F1F2A #6A9F1F #1F9F94
split-complementary
#541F9F #9F941F #2A9F1F
monochromatic
#1E0B39 #39156C #541F9F #6F29D2 #915ADF

Accessibility & contrast

On white

10.13
#541F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541F9F
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F9F#FFFFFF#000000##FFFFFF
##541F9F1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#3E445F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #541f9f;
/* rgb */ color: rgb(84, 31, 159);
/* oklch */ color: oklch(40.0% 0.188 295.1);
Tailwind
colors: {
  custom: {
    50: '#8c62bc',
    500: '#541f9f',
    950: '#000000',
  },
}
SCSS
$custom: #541f9f;
$custom-light: #8c62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#541f9f",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 264.844,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40034,
    "c": 0.18774,
    "h": 295.1
  },
  "luminance": 0.05368
}

Semantic roles & 50–950 ramp

primary
#541F9F
secondary
#96C357
accent
#EA3EA3
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #541F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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