#5A428E#5A428E

#5A428E is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.3% C 0.121 H 295.6°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#5A428E
RGBrgb(90, 66, 142)
HSLhsl(259, 37%, 41%)
HSVhsv(259, 54%, 56%)
CMYKcmyk(36.6%, 53.5%, 0%, 44.3%)
CIE-LABlab(34.03, 28.35, -38.69)
CIE-LCHlch(34.03, 47.97, 306.23°)
OKLaboklab(44.3% 0.0524 -0.1095)
OKLCHoklch(44.3% 0.121 295.6)
XYZxyz(11.0459, 8.0229, 26.5526)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A428E #768E42
analogous
#42508E #5A428E #80428E
triadic
#5A428E #8E5A42 #428E5A
tetradic
#5A428E #8E4250 #768E42 #428E80
square
#5A428E #8E4250 #768E42 #428E80
split-complementary
#5A428E #8E8042 #508E42
monochromatic
#251B3A #402F64 #5A428E #765BB3 #9984C6

Accessibility & contrast

On white

8.06
#5A428E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5A428E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A428E
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A428E#FFFFFF#000000##FFFFFF
##5A428E1.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245191
Deuteranopia (green-blind)
#2A4F8C
Tritanopia (blue-blind)
#4E5161
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a428e;
/* rgb */ color: rgb(90, 66, 142);
/* oklch */ color: oklch(44.3% 0.121 295.6);
Tailwind
colors: {
  custom: {
    50: '#8c77af',
    500: '#5a428e',
    950: '#000000',
  },
}
SCSS
$custom: #5a428e;
$custom-light: #8c77af;
$custom-dark: #000000;
JSON
{
  "hex": "#5a428e",
  "rgb": {
    "r": 90,
    "g": 66,
    "b": 142
  },
  "hsl": {
    "h": 258.947,
    "s": 36.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44301,
    "c": 0.12137,
    "h": 295.6
  },
  "luminance": 0.08023
}

Semantic roles & 50–950 ramp

primary
#5A428E
secondary
#A0B17B
accent
#CD5BA9
background
#F8F7FA
surface
#F0EDF5
border
#CBC8CF
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5A428E

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

Preview Lab → · Contrast checker → · Palette generator →

#5A428E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva