#541C9F#541C9F

#541C9F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.8% C 0.190 H 295.4°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#541C9F
RGBrgb(84, 28, 159)
HSLhsl(266, 70%, 37%)
HSVhsv(266, 82%, 62%)
CMYKcmyk(47.2%, 82.4%, 0%, 37.6%)
CIE-LABlab(27.35, 51.75, -59.95)
CIE-LCHlch(27.35, 79.20, 310.80°)
OKLaboklab(39.75% 0.0818 -0.172)
OKLCHoklch(39.75% 0.19 295.4)
XYZxyz(10.3277, 5.2183, 33.2572)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541C9F #679F1C
analogous
#1C269F #541C9F #961C9F
triadic
#541C9F #9F541C #1C9F54
tetradic
#541C9F #9F1C26 #679F1C #1C9F96
square
#541C9F #9F1C26 #679F1C #1C9F96
split-complementary
#541C9F #9F961C #269F1C
monochromatic
#1D0A37 #39136B #541C9F #6F25D3 #9154E1

Accessibility & contrast

On white

10.27
#541C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#541C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541C9F
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541C9F#FFFFFF#000000##FFFFFF
##541C9F1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#3E425F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #541c9f;
/* rgb */ color: rgb(84, 28, 159);
/* oklch */ color: oklch(39.8% 0.190 295.4);
Tailwind
colors: {
  custom: {
    50: '#8c60bc',
    500: '#541c9f',
    950: '#000000',
  },
}
SCSS
$custom: #541c9f;
$custom-light: #8c60bc;
$custom-dark: #000000;
JSON
{
  "hex": "#541c9f",
  "rgb": {
    "r": 84,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 265.649,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3975,
    "c": 0.19042,
    "h": 295.4
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#541C9F
secondary
#94C453
accent
#ED3BA1
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #541C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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