#5A28AF#5A28AF

#5A28AF is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.197 H 293.1°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5A28AF
RGBrgb(90, 40, 175)
HSLhsl(262, 63%, 42%)
HSVhsv(262, 77%, 69%)
CMYKcmyk(48.6%, 77.1%, 0%, 31.4%)
CIE-LABlab(31.31, 51.75, -63.07)
CIE-LCHlch(31.31, 81.58, 309.37°)
OKLaboklab(43.13% 0.0771 -0.181)
OKLCHoklch(43.13% 0.197 293.1)
XYZxyz(12.7110, 6.7860, 41.1892)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A28AF #7DAF28
analogous
#283AAF #5A28AF #9E28AF
triadic
#5A28AF #AF5A28 #28AF5A
tetradic
#5A28AF #AF283A #7DAF28 #28AF9E
square
#5A28AF #AF283A #7DAF28 #28AF9E
split-complementary
#5A28AF #AF9E28 #3AAF28
monochromatic
#27114B #401D7D #5A28AF #7741D4 #9B73DF

Accessibility & contrast

On white

8.91
#5A28AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5A28AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A28AF
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A28AF#FFFFFF#000000##FFFFFF
##5A28AF1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#3F4D6A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a28af;
/* rgb */ color: rgb(90, 40, 175);
/* oklch */ color: oklch(43.1% 0.197 293.1);
Tailwind
colors: {
  custom: {
    50: '#9168c8',
    500: '#5a28af',
    950: '#000000',
  },
}
SCSS
$custom: #5a28af;
$custom-light: #9168c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a28af",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 262.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4313,
    "c": 0.19674,
    "h": 293.1
  },
  "luminance": 0.06786
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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