#5A28A5#5A28A5

#5A28A5 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.186 H 295.5°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#5A28A5
RGBrgb(90, 40, 165)
HSLhsl(264, 61%, 40%)
HSVhsv(264, 76%, 65%)
CMYKcmyk(45.5%, 75.8%, 0%, 35.3%)
CIE-LABlab(30.42, 49.10, -58.53)
CIE-LCHlch(30.42, 76.40, 310.00°)
OKLaboklab(42.23% 0.0798 -0.1677)
OKLCHoklch(42.23% 0.186 295.5)
XYZxyz(11.7649, 6.4076, 36.2069)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A28A5 #73A528
analogous
#2834A5 #5A28A5 #9928A5
triadic
#5A28A5 #A55A28 #28A55A
tetradic
#5A28A5 #A52834 #73A528 #28A599
square
#5A28A5 #A52834 #73A528 #28A599
split-complementary
#5A28A5 #A59928 #34A528
monochromatic
#241042 #3F1C74 #5A28A5 #763BCF #996CDB

Accessibility & contrast

On white

9.20
#5A28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5A28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A28A5
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A28A5#FFFFFF#000000##FFFFFF
##5A28A51.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#454965
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a28a5;
/* rgb */ color: rgb(90, 40, 165);
/* oklch */ color: oklch(42.2% 0.186 295.5);
Tailwind
colors: {
  custom: {
    50: '#9067c1',
    500: '#5a28a5',
    950: '#000000',
  },
}
SCSS
$custom: #5a28a5;
$custom-light: #9067c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a28a5",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 264,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42226,
    "c": 0.18571,
    "h": 295.5
  },
  "luminance": 0.06408
}

Semantic roles & 50–950 ramp

primary
#5A28A5
secondary
#9DC267
accent
#E444A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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