#5B28AE#5B28AE

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

Color values

HEX#5B28AE
RGBrgb(91, 40, 174)
HSLhsl(263, 63%, 42%)
HSVhsv(263, 77%, 68%)
CMYKcmyk(47.7%, 77%, 0%, 31.8%)
CIE-LABlab(31.34, 51.64, -62.42)
CIE-LCHlch(31.34, 81.01, 309.60°)
OKLaboklab(43.15% 0.0789 -0.1791)
OKLCHoklch(43.15% 0.196 293.8)
XYZxyz(12.7111, 6.7973, 40.6785)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B28AE #7BAE28
analogous
#2838AE #5B28AE #9E28AE
triadic
#5B28AE #AE5B28 #28AE5B
tetradic
#5B28AE #AE2838 #7BAE28 #28AE9E
square
#5B28AE #AE2838 #7BAE28 #28AE9E
split-complementary
#5B28AE #AE9E28 #38AE28
monochromatic
#27114A #411D7C #5B28AE #7840D3 #9B72DF

Accessibility & contrast

On white

8.90
#5B28AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B28AE
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B28AE#FFFFFF#000000##FFFFFF
##5B28AE1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0047AB
Tritanopia (blue-blind)
#424D6A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b28ae;
/* rgb */ color: rgb(91, 40, 174);
/* oklch */ color: oklch(43.1% 0.196 293.8);
Tailwind
colors: {
  custom: {
    50: '#9268c7',
    500: '#5b28ae',
    950: '#000000',
  },
}
SCSS
$custom: #5b28ae;
$custom-light: #9268c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b28ae",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 262.836,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43147,
    "c": 0.19568,
    "h": 293.8
  },
  "luminance": 0.06798
}

Semantic roles & 50–950 ramp

primary
#5B28AE
secondary
#A4C66C
accent
#E642A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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