#541C8C#541C8C

#541C8C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.170 H 301.0°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#541C8C
RGBrgb(84, 28, 140)
HSLhsl(270, 67%, 33%)
HSVhsv(270, 80%, 55%)
CMYKcmyk(40%, 80%, 0%, 45.1%)
CIE-LABlab(25.59, 46.96, -51.14)
CIE-LCHlch(25.59, 69.43, 312.56°)
OKLaboklab(37.99% 0.0878 -0.1461)
OKLCHoklch(37.99% 0.17 301)
XYZxyz(8.8039, 4.6087, 25.2316)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541C8C #548C1C
analogous
#1C1C8C #541C8C #8C1C8C
triadic
#541C8C #8C541C #1C8C54
tetradic
#541C8C #8C1C1C #548C1C #1C8C8C
square
#541C8C #8C1C1C #548C1C #1C8C8C
split-complementary
#541C8C #8C8C1C #1C8C1C
monochromatic
#170826 #351259 #541C8C #7326BF #9148DA

Accessibility & contrast

On white

10.93
#541C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#541C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541C8C
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541C8C#FFFFFF#000000##FFFFFF
##541C8C1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#473A54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #541c8c;
/* rgb */ color: rgb(84, 28, 140);
/* oklch */ color: oklch(38.0% 0.170 301.0);
Tailwind
colors: {
  custom: {
    50: '#8a5faf',
    500: '#541c8c',
    950: '#000000',
  },
}
SCSS
$custom: #541c8c;
$custom-light: #8a5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#541c8c",
  "rgb": {
    "r": 84,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 270,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37991,
    "c": 0.17048,
    "h": 301
  },
  "luminance": 0.04609
}

Semantic roles & 50–950 ramp

primary
#541C8C
secondary
#82BC48
accent
#EA3E94
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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