#541478#541478

#541478 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.158 H 309.3°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#541478
RGBrgb(84, 20, 120)
HSLhsl(278, 71%, 27%)
HSVhsv(278, 83%, 47%)
CMYKcmyk(30%, 83.3%, 0%, 52.9%)
CIE-LABlab(22.80, 45.27, -43.08)
CIE-LCHlch(22.80, 62.49, 316.41°)
OKLaboklab(35.5% 0.1001 -0.1224)
OKLCHoklch(35.5% 0.158 309.3)
XYZxyz(7.2958, 3.7413, 18.1035)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541478 #387814
analogous
#221478 #541478 #78146A
triadic
#541478 #785414 #147854
tetradic
#541478 #782214 #387814 #146A78
square
#541478 #782214 #387814 #146A78
split-complementary
#541478 #6A7814 #147822
monochromatic
#12041A #2F0B44 #541478 #791DAC #9C2BDC

Accessibility & contrast

On white

12.01
#541478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#541478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541478
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541478#FFFFFF#000000##FFFFFF
##5414781.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#4F2E47
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #541478;
/* rgb */ color: rgb(84, 20, 120);
/* oklch */ color: oklch(35.5% 0.158 309.3);
Tailwind
colors: {
  custom: {
    50: '#895ba0',
    500: '#541478',
    950: '#000000',
  },
}
SCSS
$custom: #541478;
$custom-light: #895ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#541478",
  "rgb": {
    "r": 84,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 278.4,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35504,
    "c": 0.15811,
    "h": 309.3
  },
  "luminance": 0.03741
}

Semantic roles & 50–950 ramp

primary
#541478
secondary
#64AE3A
accent
#EE3A7B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #541478

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

Preview Lab → · Contrast checker → · Palette generator →

#541478 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva