#5428AC#5428AC

#5428AC is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.193 H 290.9°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#5428AC
RGBrgb(84, 40, 172)
HSLhsl(260, 62%, 42%)
HSVhsv(260, 77%, 67%)
CMYKcmyk(51.2%, 76.7%, 0%, 32.5%)
CIE-LABlab(30.35, 50.05, -62.88)
CIE-LCHlch(30.35, 80.36, 308.52°)
OKLaboklab(42.22% 0.0688 -0.1806)
OKLCHoklch(42.22% 0.193 290.9)
XYZxyz(11.8592, 6.3805, 39.6284)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5428AC #80AC28
analogous
#283EAC #5428AC #9628AC
triadic
#5428AC #AC5428 #28AC54
tetradic
#5428AC #AC283E #80AC28 #28AC96
square
#5428AC #AC283E #80AC28 #28AC96
split-complementary
#5428AC #AC9628 #3EAC28
monochromatic
#241149 #3C1C7A #5428AC #703FD2 #9571DE

Accessibility & contrast

On white

9.23
#5428AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5428AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5428AC
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5428AC#FFFFFF#000000##FFFFFF
##5428AC1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#354D69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5428ac;
/* rgb */ color: rgb(84, 40, 172);
/* oklch */ color: oklch(42.2% 0.193 290.9);
Tailwind
colors: {
  custom: {
    50: '#8d67c6',
    500: '#5428ac',
    950: '#000000',
  },
}
SCSS
$custom: #5428ac;
$custom-light: #8d67c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5428ac",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 260,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42215,
    "c": 0.1933,
    "h": 290.9
  },
  "luminance": 0.06381
}

Semantic roles & 50–950 ramp

primary
#5428AC
secondary
#A7C56B
accent
#E542AF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5428AC

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

Preview Lab → · Contrast checker → · Palette generator →

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