#5A28B1#5A28B1

#5A28B1 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.199 H 292.6°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#5A28B1
RGBrgb(90, 40, 177)
HSLhsl(262, 63%, 43%)
HSVhsv(262, 77%, 69%)
CMYKcmyk(49.2%, 77.4%, 0%, 30.6%)
CIE-LABlab(31.50, 52.28, -63.96)
CIE-LCHlch(31.50, 82.61, 309.26°)
OKLaboklab(43.31% 0.0766 -0.1836)
OKLCHoklch(43.31% 0.199 292.6)
XYZxyz(12.9088, 6.8651, 42.2314)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A28B1 #7FB128
analogous
#283AB1 #5A28B1 #9F28B1
triadic
#5A28B1 #B15A28 #28B15A
tetradic
#5A28B1 #B1283A #7FB128 #28B19F
square
#5A28B1 #B1283A #7FB128 #28B19F
split-complementary
#5A28B1 #B19F28 #3AB128
monochromatic
#27114D #411D7F #5A28B1 #7742D4 #9B74E0

Accessibility & contrast

On white

8.85
#5A28B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5A28B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A28B1
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A28B1#FFFFFF#000000##FFFFFF
##5A28B11.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#3E4E6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a28b1;
/* rgb */ color: rgb(90, 40, 177);
/* oklch */ color: oklch(43.3% 0.199 292.6);
Tailwind
colors: {
  custom: {
    50: '#9268c9',
    500: '#5a28b1',
    950: '#000000',
  },
}
SCSS
$custom: #5a28b1;
$custom-light: #9268c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a28b1",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 261.898,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43314,
    "c": 0.19893,
    "h": 292.6
  },
  "luminance": 0.06866
}

Semantic roles & 50–950 ramp

primary
#5A28B1
secondary
#A6C76E
accent
#E642AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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