#5420A6#5420A6

#5420A6 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.194 H 293.2°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#5420A6
RGBrgb(84, 32, 166)
HSLhsl(263, 68%, 39%)
HSVhsv(263, 81%, 65%)
CMYKcmyk(49.4%, 80.7%, 0%, 34.9%)
CIE-LABlab(28.57, 51.96, -62.20)
CIE-LCHlch(28.57, 81.05, 309.88°)
OKLaboklab(40.8% 0.0766 -0.1786)
OKLCHoklch(40.8% 0.194 293.2)
XYZxyz(11.0537, 5.6706, 36.5811)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5420A6 #72A620
analogous
#202FA6 #5420A6 #9720A6
triadic
#5420A6 #A65420 #20A654
tetradic
#5420A6 #A6202F #72A620 #20A697
square
#5420A6 #A6202F #72A620 #20A697
split-complementary
#5420A6 #A69720 #2FA620
monochromatic
#200C3F #3A1673 #5420A6 #6F2DD6 #9260E0

Accessibility & contrast

On white

9.84
#5420A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5420A6
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5420A6#FFFFFF#000000##FFFFFF
##5420A61.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0041A4
Tritanopia (blue-blind)
#3A4764
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5420a6;
/* rgb */ color: rgb(84, 32, 166);
/* oklch */ color: oklch(40.8% 0.194 293.2);
Tailwind
colors: {
  custom: {
    50: '#8d63c2',
    500: '#5420a6',
    950: '#000000',
  },
}
SCSS
$custom: #5420a6;
$custom-light: #8d63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5420a6",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 263.284,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40797,
    "c": 0.19432,
    "h": 293.2
  },
  "luminance": 0.05671
}

Semantic roles & 50–950 ramp

primary
#5420A6
secondary
#9DC55D
accent
#EB3DA7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5420A6

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

Preview Lab → · Contrast checker → · Palette generator →

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