#5420A1#5420A1

#5420A1 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.189 H 294.5°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#5420A1
RGBrgb(84, 32, 161)
HSLhsl(264, 67%, 38%)
HSVhsv(264, 80%, 63%)
CMYKcmyk(47.8%, 80.1%, 0%, 36.9%)
CIE-LABlab(28.09, 50.66, -59.95)
CIE-LCHlch(28.09, 78.49, 310.20°)
OKLaboklab(40.32% 0.0783 -0.172)
OKLCHoklch(40.32% 0.189 294.5)
XYZxyz(10.6039, 5.4907, 34.2124)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5420A1 #6DA120
analogous
#202DA1 #5420A1 #9420A1
triadic
#5420A1 #A15420 #20A154
tetradic
#5420A1 #A1202D #6DA120 #20A194
square
#5420A1 #A1202D #6DA120 #20A194
split-complementary
#5420A1 #A19420 #2DA120
monochromatic
#1F0C3B #39166E #5420A1 #6F2AD4 #915DDF

Accessibility & contrast

On white

10.01
#5420A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5420A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5420A1
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5420A1#FFFFFF#000000##FFFFFF
##5420A11.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#3D4561
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5420a1;
/* rgb */ color: rgb(84, 32, 161);
/* oklch */ color: oklch(40.3% 0.189 294.5);
Tailwind
colors: {
  custom: {
    50: '#8c62be',
    500: '#5420a1',
    950: '#000000',
  },
}
SCSS
$custom: #5420a1;
$custom-light: #8c62be;
$custom-dark: #000000;
JSON
{
  "hex": "#5420a1",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 264.186,
    "s": 66.839,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40322,
    "c": 0.18896,
    "h": 294.5
  },
  "luminance": 0.05491
}

Semantic roles & 50–950 ramp

primary
#5420A1
secondary
#99C35A
accent
#EA3EA5
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5420A1

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

Preview Lab → · Contrast checker → · Palette generator →

#5420A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva