#5420A5#5420A5

#5420A5 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.193 H 293.5°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#5420A5
RGBrgb(84, 32, 165)
HSLhsl(263, 68%, 39%)
HSVhsv(263, 81%, 65%)
CMYKcmyk(49.1%, 80.6%, 0%, 35.3%)
CIE-LABlab(28.47, 51.70, -61.75)
CIE-LCHlch(28.47, 80.54, 309.94°)
OKLaboklab(40.7% 0.077 -0.1773)
OKLCHoklch(40.7% 0.193 293.5)
XYZxyz(10.9623, 5.6341, 36.0999)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5420A5 #71A520
analogous
#202EA5 #5420A5 #9620A5
triadic
#5420A5 #A55420 #20A554
tetradic
#5420A5 #A5202E #71A520 #20A596
square
#5420A5 #A5202E #71A520 #20A596
split-complementary
#5420A5 #A59620 #2EA520
monochromatic
#200C3E #3A1672 #5420A5 #6F2CD6 #925FE0

Accessibility & contrast

On white

9.87
#5420A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5420A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5420A5
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5420A5#FFFFFF#000000##FFFFFF
##5420A51.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#0041A3
Tritanopia (blue-blind)
#3A4663
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5420a5;
/* rgb */ color: rgb(84, 32, 165);
/* oklch */ color: oklch(40.7% 0.193 293.5);
Tailwind
colors: {
  custom: {
    50: '#8d63c1',
    500: '#5420a5',
    950: '#000000',
  },
}
SCSS
$custom: #5420a5;
$custom-light: #8d63c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5420a5",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 165
  },
  "hsl": {
    "h": 263.459,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40702,
    "c": 0.19325,
    "h": 293.5
  },
  "luminance": 0.05634
}

Semantic roles & 50–950 ramp

primary
#5420A5
secondary
#9CC55C
accent
#EA3DA7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5420A5

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

Preview Lab → · Contrast checker → · Palette generator →

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