#541F78#541F78

#541F78 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.146 H 307.9°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#541F78
RGBrgb(84, 31, 120)
HSLhsl(276, 59%, 30%)
HSVhsv(276, 74%, 47%)
CMYKcmyk(30%, 74.2%, 0%, 52.9%)
CIE-LABlab(24.39, 40.71, -40.50)
CIE-LCHlch(24.39, 57.42, 315.15°)
OKLaboklab(36.63% 0.0895 -0.1149)
OKLCHoklch(36.63% 0.146 307.9)
XYZxyz(7.5356, 4.2210, 18.1834)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F78 #43781F
analogous
#271F78 #541F78 #781F70
triadic
#541F78 #78541F #1F7854
tetradic
#541F78 #78271F #43781F #1F7078
square
#541F78 #78271F #43781F #1F7078
split-complementary
#541F78 #70781F #1F7827
monochromatic
#110618 #321247 #541F78 #762CA9 #9643CE

Accessibility & contrast

On white

11.39
#541F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#541F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F78
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F78#FFFFFF#000000##FFFFFF
##541F781.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#053A76
Tritanopia (blue-blind)
#4E3349
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541f78;
/* rgb */ color: rgb(84, 31, 120);
/* oklch */ color: oklch(36.6% 0.146 307.9);
Tailwind
colors: {
  custom: {
    50: '#8860a0',
    500: '#541f78',
    950: '#000000',
  },
}
SCSS
$custom: #541f78;
$custom-light: #8860a0;
$custom-dark: #000000;
JSON
{
  "hex": "#541f78",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 275.73,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36626,
    "c": 0.14562,
    "h": 307.9
  },
  "luminance": 0.04221
}

Semantic roles & 50–950 ramp

primary
#541F78
secondary
#70AB47
accent
#E24685
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #541F78

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

Preview Lab → · Contrast checker → · Palette generator →

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