#5420A7#5420A7

#5420A7 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.195 H 293.0°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#5420A7
RGBrgb(84, 32, 167)
HSLhsl(263, 68%, 39%)
HSVhsv(263, 81%, 65%)
CMYKcmyk(49.7%, 80.8%, 0%, 34.5%)
CIE-LABlab(28.66, 52.22, -62.64)
CIE-LCHlch(28.66, 81.56, 309.82°)
OKLaboklab(40.89% 0.0763 -0.1799)
OKLCHoklch(40.89% 0.195 293)
XYZxyz(11.1458, 5.7075, 37.0661)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5420A7 #73A720
analogous
#2030A7 #5420A7 #9820A7
triadic
#5420A7 #A75420 #20A754
tetradic
#5420A7 #A72030 #73A720 #20A798
square
#5420A7 #A72030 #73A720 #20A798
split-complementary
#5420A7 #A79820 #30A720
monochromatic
#200C40 #3A1674 #5420A7 #6F2DD7 #9261E1

Accessibility & contrast

On white

9.81
#5420A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5420A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5420A7
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5420A7#FFFFFF#000000##FFFFFF
##5420A71.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#394764
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5420a7;
/* rgb */ color: rgb(84, 32, 167);
/* oklch */ color: oklch(40.9% 0.195 293.0);
Tailwind
colors: {
  custom: {
    50: '#8d63c2',
    500: '#5420a7',
    950: '#000000',
  },
}
SCSS
$custom: #5420a7;
$custom-light: #8d63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5420a7",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 263.111,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40893,
    "c": 0.1954,
    "h": 293
  },
  "luminance": 0.05708
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5420A7

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

Preview Lab → · Contrast checker → · Palette generator →

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