#5A28A9#5A28A9

#5A28A9 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.190 H 294.5°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5A28A9
RGBrgb(90, 40, 169)
HSLhsl(263, 62%, 41%)
HSVhsv(263, 76%, 66%)
CMYKcmyk(46.7%, 76.3%, 0%, 33.7%)
CIE-LABlab(30.77, 50.16, -60.36)
CIE-LCHlch(30.77, 78.48, 309.73°)
OKLaboklab(42.58% 0.0788 -0.173)
OKLCHoklch(42.58% 0.19 294.5)
XYZxyz(12.1347, 6.5555, 38.1544)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A28A9 #77A928
analogous
#2836A9 #5A28A9 #9A28A9
triadic
#5A28A9 #A95A28 #28A95A
tetradic
#5A28A9 #A92836 #77A928 #28A99A
square
#5A28A9 #A92836 #77A928 #28A99A
split-complementary
#5A28A9 #A99A28 #36A928
monochromatic
#251146 #401C78 #5A28A9 #763DD1 #996FDD

Accessibility & contrast

On white

9.09
#5A28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5A28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A28A9
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A28A9#FFFFFF#000000##FFFFFF
##5A28A91.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#434B67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a28a9;
/* rgb */ color: rgb(90, 40, 169);
/* oklch */ color: oklch(42.6% 0.190 294.5);
Tailwind
colors: {
  custom: {
    50: '#9067c4',
    500: '#5a28a9',
    950: '#000000',
  },
}
SCSS
$custom: #5a28a9;
$custom-light: #9067c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a28a9",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 263.256,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42584,
    "c": 0.19013,
    "h": 294.5
  },
  "luminance": 0.06556
}

Semantic roles & 50–950 ramp

primary
#5A28A9
secondary
#A1C469
accent
#E543A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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