#5420A8#5420A8

#5420A8 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 41.0% C 0.196 H 292.8°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5420A8
RGBrgb(84, 32, 168)
HSLhsl(263, 68%, 39%)
HSVhsv(263, 81%, 66%)
CMYKcmyk(50%, 81%, 0%, 34.1%)
CIE-LABlab(28.76, 52.49, -63.09)
CIE-LCHlch(28.76, 82.07, 309.76°)
OKLaboklab(40.99% 0.076 -0.1812)
OKLCHoklch(40.99% 0.196 292.8)
XYZxyz(11.2386, 5.7446, 37.5549)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5420A8 #74A820
analogous
#2030A8 #5420A8 #9820A8
triadic
#5420A8 #A85420 #20A854
tetradic
#5420A8 #A82030 #74A820 #20A898
square
#5420A8 #A82030 #74A820 #20A898
split-complementary
#5420A8 #A89820 #30A820
monochromatic
#210C41 #3A1675 #5420A8 #6F2ED7 #9261E1

Accessibility & contrast

On white

9.77
#5420A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5420A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5420A8
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5420A8#FFFFFF#000000##FFFFFF
##5420A81.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#0041A6
Tritanopia (blue-blind)
#384865
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5420a8;
/* rgb */ color: rgb(84, 32, 168);
/* oklch */ color: oklch(41.0% 0.196 292.8);
Tailwind
colors: {
  custom: {
    50: '#8d63c3',
    500: '#5420a8',
    950: '#000000',
  },
}
SCSS
$custom: #5420a8;
$custom-light: #8d63c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5420a8",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 262.941,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40989,
    "c": 0.19647,
    "h": 292.8
  },
  "luminance": 0.05745
}

Semantic roles & 50–950 ramp

primary
#5420A8
secondary
#9EC65E
accent
#EB3DA8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5420A8

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

Preview Lab → · Contrast checker → · Palette generator →

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