#5D28AE#5D28AE

#5D28AE is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.4% C 0.196 H 294.7°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#5D28AE
RGBrgb(93, 40, 174)
HSLhsl(264, 63%, 42%)
HSVhsv(264, 77%, 68%)
CMYKcmyk(46.6%, 77%, 0%, 31.8%)
CIE-LABlab(31.58, 51.94, -62.02)
CIE-LCHlch(31.58, 80.90, 309.95°)
OKLaboklab(43.37% 0.0819 -0.1778)
OKLCHoklch(43.37% 0.196 294.7)
XYZxyz(12.9109, 6.9004, 40.6878)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D28AE #79AE28
analogous
#2836AE #5D28AE #A028AE
triadic
#5D28AE #AE5D28 #28AE5D
tetradic
#5D28AE #AE2836 #79AE28 #28AEA0
square
#5D28AE #AE2836 #79AE28 #28AEA0
split-complementary
#5D28AE #AEA028 #36AE28
monochromatic
#28114A #421D7C #5D28AE #7A40D3 #9D72DF

Accessibility & contrast

On white

8.82
#5D28AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5D28AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D28AE
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D28AE#FFFFFF#000000##FFFFFF
##5D28AE1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d28ae;
/* rgb */ color: rgb(93, 40, 174);
/* oklch */ color: oklch(43.4% 0.196 294.7);
Tailwind
colors: {
  custom: {
    50: '#9368c7',
    500: '#5d28ae',
    950: '#000000',
  },
}
SCSS
$custom: #5d28ae;
$custom-light: #9368c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d28ae",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 263.731,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43367,
    "c": 0.19579,
    "h": 294.7
  },
  "luminance": 0.06901
}

Semantic roles & 50–950 ramp

primary
#5D28AE
secondary
#A2C66C
accent
#E642A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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