#541678#541678

#541678 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.156 H 309.1°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#541678
RGBrgb(84, 22, 120)
HSLhsl(278, 69%, 28%)
HSVhsv(278, 82%, 47%)
CMYKcmyk(30%, 81.7%, 0%, 52.9%)
CIE-LABlab(23.05, 44.53, -42.67)
CIE-LCHlch(23.05, 61.68, 316.22°)
OKLaboklab(35.68% 0.0984 -0.1212)
OKLCHoklch(35.68% 0.156 309.1)
XYZxyz(7.3325, 3.8148, 18.1157)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541678 #3A7816
analogous
#231678 #541678 #78166B
triadic
#541678 #785416 #167854
tetradic
#541678 #782316 #3A7816 #166B78
square
#541678 #782316 #3A7816 #166B78
split-complementary
#541678 #6B7816 #167823
monochromatic
#12051A #300D44 #541678 #781FAC #9B2FD9

Accessibility & contrast

On white

11.91
#541678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#541678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541678
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541678#FFFFFF#000000##FFFFFF
##5416781.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#4E2F47
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #541678;
/* rgb */ color: rgb(84, 22, 120);
/* oklch */ color: oklch(35.7% 0.156 309.1);
Tailwind
colors: {
  custom: {
    50: '#885ca0',
    500: '#541678',
    950: '#000000',
  },
}
SCSS
$custom: #541678;
$custom-light: #885ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#541678",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 277.959,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3568,
    "c": 0.15611,
    "h": 309.1
  },
  "luminance": 0.03815
}

Semantic roles & 50–950 ramp

primary
#541678
secondary
#66AD3C
accent
#EC3C7D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #541678

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

Preview Lab → · Contrast checker → · Palette generator →

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