#5D28AB#5D28AB

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

Color values

HEX#5D28AB
RGBrgb(93, 40, 171)
HSLhsl(264, 62%, 41%)
HSVhsv(264, 77%, 67%)
CMYKcmyk(45.6%, 76.6%, 0%, 32.9%)
CIE-LABlab(31.31, 51.16, -60.66)
CIE-LCHlch(31.31, 79.36, 310.14°)
OKLaboklab(43.1% 0.0828 -0.1738)
OKLCHoklch(43.1% 0.193 295.5)
XYZxyz(12.6217, 6.7847, 39.1648)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D28AB #76AB28
analogous
#2835AB #5D28AB #9F28AB
triadic
#5D28AB #AB5D28 #28AB5D
tetradic
#5D28AB #AB2835 #76AB28 #28AB9F
square
#5D28AB #AB2835 #76AB28 #28AB9F
split-complementary
#5D28AB #AB9F28 #35AB28
monochromatic
#271148 #421C79 #5D28AB #7A3ED2 #9C70DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D28AB#FFFFFF#000000##FFFFFF
##5D28AB1.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)
#004BAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#474B68
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d28ab;
/* rgb */ color: rgb(93, 40, 171);
/* oklch */ color: oklch(43.1% 0.193 295.5);
Tailwind
colors: {
  custom: {
    50: '#9368c5',
    500: '#5d28ab',
    950: '#000000',
  },
}
SCSS
$custom: #5d28ab;
$custom-light: #9368c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d28ab",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 264.275,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43098,
    "c": 0.19253,
    "h": 295.5
  },
  "luminance": 0.06785
}

Semantic roles & 50–950 ramp

primary
#5D28AB
secondary
#A0C46A
accent
#E543A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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