#541C94#541C94

#541C94 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.179 H 298.5°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#541C94
RGBrgb(84, 28, 148)
HSLhsl(268, 68%, 35%)
HSVhsv(268, 81%, 58%)
CMYKcmyk(43.2%, 81.1%, 0%, 42%)
CIE-LABlab(26.31, 48.97, -54.91)
CIE-LCHlch(26.31, 73.57, 311.73°)
OKLaboklab(38.72% 0.0854 -0.1572)
OKLCHoklch(38.72% 0.179 298.5)
XYZxyz(9.4153, 4.8533, 28.4520)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541C94 #5C941C
analogous
#1C2094 #541C94 #901C94
triadic
#541C94 #94541C #1C9454
tetradic
#541C94 #941C20 #5C941C #1C9490
square
#541C94 #941C20 #5C941C #1C9490
split-complementary
#541C94 #94901C #20941C
monochromatic
#1A092D #371261 #541C94 #7126C7 #904DDD

Accessibility & contrast

On white

10.66
#541C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#541C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541C94
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541C94#FFFFFF#000000##FFFFFF
##541C941.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003D92
Tritanopia (blue-blind)
#443E58
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #541c94;
/* rgb */ color: rgb(84, 28, 148);
/* oklch */ color: oklch(38.7% 0.179 298.5);
Tailwind
colors: {
  custom: {
    50: '#8b60b4',
    500: '#541c94',
    950: '#000000',
  },
}
SCSS
$custom: #541c94;
$custom-light: #8b60b4;
$custom-dark: #000000;
JSON
{
  "hex": "#541c94",
  "rgb": {
    "r": 84,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 268,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38717,
    "c": 0.1789,
    "h": 298.5
  },
  "luminance": 0.04853
}

Semantic roles & 50–950 ramp

primary
#541C94
secondary
#8AC04C
accent
#EB3D9A
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #541C94

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

Preview Lab → · Contrast checker → · Palette generator →

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