#5428A2#5428A2

#5428A2 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.182 H 293.1°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5428A2
RGBrgb(84, 40, 162)
HSLhsl(262, 60%, 40%)
HSVhsv(262, 75%, 64%)
CMYKcmyk(48.1%, 75.3%, 0%, 36.5%)
CIE-LABlab(29.44, 47.32, -58.35)
CIE-LCHlch(29.44, 75.12, 309.04°)
OKLaboklab(41.29% 0.0715 -0.1673)
OKLCHoklch(41.29% 0.182 293.1)
XYZxyz(10.9347, 6.0107, 34.7595)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5428A2 #76A228
analogous
#2839A2 #5428A2 #9128A2
triadic
#5428A2 #A25428 #28A254
tetradic
#5428A2 #A22839 #76A228 #28A291
square
#5428A2 #A22839 #76A228 #28A291
split-complementary
#5428A2 #A29128 #39A228
monochromatic
#211040 #3B1C71 #5428A2 #6F39CE #936ADA

Accessibility & contrast

On white

9.54
#5428A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5428A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5428A2
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5428A2#FFFFFF#000000##FFFFFF
##5428A21.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#3C4963
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5428a2;
/* rgb */ color: rgb(84, 40, 162);
/* oklch */ color: oklch(41.3% 0.182 293.1);
Tailwind
colors: {
  custom: {
    50: '#8c67bf',
    500: '#5428a2',
    950: '#000000',
  },
}
SCSS
$custom: #5428a2;
$custom-light: #8c67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5428a2",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 261.639,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41294,
    "c": 0.18199,
    "h": 293.1
  },
  "luminance": 0.06011
}

Semantic roles & 50–950 ramp

primary
#5428A2
secondary
#A0C165
accent
#E444AA
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5428A2

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

Preview Lab → · Contrast checker → · Palette generator →

#5428A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva