#541FA8#541FA8

#541FA8 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.197 H 292.9°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#541FA8
RGBrgb(84, 31, 168)
HSLhsl(263, 69%, 39%)
HSVhsv(263, 82%, 66%)
CMYKcmyk(50%, 81.5%, 0%, 34.1%)
CIE-LABlab(28.62, 52.89, -63.32)
CIE-LCHlch(28.62, 82.50, 309.87°)
OKLaboklab(40.89% 0.0767 -0.1818)
OKLCHoklch(40.89% 0.197 292.9)
XYZxyz(11.2120, 5.6915, 37.5460)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541FA8 #73A81F
analogous
#1F2EA8 #541FA8 #991FA8
triadic
#541FA8 #A8541F #1FA854
tetradic
#541FA8 #A81F2E #73A81F #1FA899
square
#541FA8 #A81F2E #73A81F #1FA899
split-complementary
#541FA8 #A8991F #2EA81F
monochromatic
#200C41 #3A1574 #541FA8 #6F2CD8 #9260E2

Accessibility & contrast

On white

9.82
#541FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#541FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541FA8
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541FA8#FFFFFF#000000##FFFFFF
##541FA81.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#0041A6
Tritanopia (blue-blind)
#394765
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #541fa8;
/* rgb */ color: rgb(84, 31, 168);
/* oklch */ color: oklch(40.9% 0.197 292.9);
Tailwind
colors: {
  custom: {
    50: '#8d62c3',
    500: '#541fa8',
    950: '#000000',
  },
}
SCSS
$custom: #541fa8;
$custom-light: #8d62c3;
$custom-dark: #000000;
JSON
{
  "hex": "#541fa8",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 263.212,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40894,
    "c": 0.19733,
    "h": 292.9
  },
  "luminance": 0.05692
}

Semantic roles & 50–950 ramp

primary
#541FA8
secondary
#9DC65D
accent
#EC3CA8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #541FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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