#541C7F#541C7F

#541C7F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.157 H 305.6°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#541C7F
RGBrgb(84, 28, 127)
HSLhsl(274, 64%, 30%)
HSVhsv(274, 78%, 50%)
CMYKcmyk(33.9%, 78%, 0%, 50.2%)
CIE-LABlab(24.47, 43.76, -44.81)
CIE-LCHlch(24.47, 62.63, 314.32°)
OKLaboklab(36.86% 0.0912 -0.1275)
OKLCHoklch(36.86% 0.157 305.6)
XYZxyz(7.9013, 4.2477, 20.4782)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541C7F #477F1C
analogous
#221C7F #541C7F #7F1C79
triadic
#541C7F #7F541C #1C7F54
tetradic
#541C7F #7F221C #477F1C #1C797F
square
#541C7F #7F221C #477F1C #1C797F
split-complementary
#541C7F #797F1C #1C7F22
monochromatic
#12061B #33114D #541C7F #7527B1 #9440D5

Accessibility & contrast

On white

11.35
#541C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#541C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541C7F
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541C7F#FFFFFF#000000##FFFFFF
##541C7F1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#4C354C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541c7f;
/* rgb */ color: rgb(84, 28, 127);
/* oklch */ color: oklch(36.9% 0.157 305.6);
Tailwind
colors: {
  custom: {
    50: '#895fa5',
    500: '#541c7f',
    950: '#000000',
  },
}
SCSS
$custom: #541c7f;
$custom-light: #895fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#541c7f",
  "rgb": {
    "r": 84,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 273.939,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36862,
    "c": 0.15677,
    "h": 305.6
  },
  "luminance": 0.04248
}

Semantic roles & 50–950 ramp

primary
#541C7F
secondary
#74B344
accent
#E74189
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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