#5A28AE#5A28AE

#5A28AE is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.0% C 0.196 H 293.3°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#5A28AE
RGBrgb(90, 40, 174)
HSLhsl(262, 63%, 42%)
HSVhsv(262, 77%, 68%)
CMYKcmyk(48.3%, 77%, 0%, 31.8%)
CIE-LABlab(31.22, 51.48, -62.62)
CIE-LCHlch(31.22, 81.07, 309.43°)
OKLaboklab(43.04% 0.0774 -0.1797)
OKLCHoklch(43.04% 0.196 293.3)
XYZxyz(12.6131, 6.7468, 40.6739)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A28AE #7CAE28
analogous
#2839AE #5A28AE #9D28AE
triadic
#5A28AE #AE5A28 #28AE5A
tetradic
#5A28AE #AE2839 #7CAE28 #28AE9D
square
#5A28AE #AE2839 #7CAE28 #28AE9D
split-complementary
#5A28AE #AE9D28 #39AE28
monochromatic
#27114A #401D7C #5A28AE #7740D3 #9A72DF

Accessibility & contrast

On white

8.94
#5A28AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5A28AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A28AE
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A28AE#FFFFFF#000000##FFFFFF
##5A28AE1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0047AB
Tritanopia (blue-blind)
#404D6A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a28ae;
/* rgb */ color: rgb(90, 40, 174);
/* oklch */ color: oklch(43.0% 0.196 293.3);
Tailwind
colors: {
  custom: {
    50: '#9168c7',
    500: '#5a28ae',
    950: '#000000',
  },
}
SCSS
$custom: #5a28ae;
$custom-light: #9168c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a28ae",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 262.388,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43038,
    "c": 0.19563,
    "h": 293.3
  },
  "luminance": 0.06747
}

Semantic roles & 50–950 ramp

primary
#5A28AE
secondary
#A4C66C
accent
#E642A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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