#5A28AB#5A28AB

#5A28AB is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.192 H 294.0°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#5A28AB
RGBrgb(90, 40, 171)
HSLhsl(263, 62%, 41%)
HSVhsv(263, 77%, 67%)
CMYKcmyk(47.4%, 76.6%, 0%, 32.9%)
CIE-LABlab(30.95, 50.69, -61.27)
CIE-LCHlch(30.95, 79.52, 309.60°)
OKLaboklab(42.77% 0.0782 -0.1757)
OKLCHoklch(42.77% 0.192 294)
XYZxyz(12.3239, 6.6311, 39.1508)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A28AB #79AB28
analogous
#2838AB #5A28AB #9C28AB
triadic
#5A28AB #AB5A28 #28AB5A
tetradic
#5A28AB #AB2838 #79AB28 #28AB9C
square
#5A28AB #AB2838 #79AB28 #28AB9C
split-complementary
#5A28AB #AB9C28 #38AB28
monochromatic
#261148 #401C79 #5A28AB #773ED2 #9A70DE

Accessibility & contrast

On white

9.03
#5A28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5A28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A28AB
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A28AB#FFFFFF#000000##FFFFFF
##5A28AB1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#424C68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a28ab;
/* rgb */ color: rgb(90, 40, 171);
/* oklch */ color: oklch(42.8% 0.192 294.0);
Tailwind
colors: {
  custom: {
    50: '#9168c5',
    500: '#5a28ab',
    950: '#000000',
  },
}
SCSS
$custom: #5a28ab;
$custom-light: #9168c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a28ab",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 262.901,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42765,
    "c": 0.19234,
    "h": 294
  },
  "luminance": 0.06632
}

Semantic roles & 50–950 ramp

primary
#5A28AB
secondary
#A2C46A
accent
#E543A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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