#5E28AD#5E28AD

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

Color values

HEX#5E28AD
RGBrgb(94, 40, 173)
HSLhsl(264, 62%, 42%)
HSVhsv(264, 77%, 68%)
CMYKcmyk(45.7%, 76.9%, 0%, 32.2%)
CIE-LABlab(31.61, 51.84, -61.37)
CIE-LCHlch(31.61, 80.33, 310.19°)
OKLaboklab(43.39% 0.0837 -0.1759)
OKLCHoklch(43.39% 0.195 295.5)
XYZxyz(12.9157, 6.9141, 40.1811)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E28AD #77AD28
analogous
#2835AD #5E28AD #A128AD
triadic
#5E28AD #AD5E28 #28AD5E
tetradic
#5E28AD #AD2835 #77AD28 #28ADA1
square
#5E28AD #AD2835 #77AD28 #28ADA1
split-complementary
#5E28AD #ADA128 #35AD28
monochromatic
#28114A #431D7B #5E28AD #7B3FD3 #9D71DE

Accessibility & contrast

On white

8.81
#5E28AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E28AD
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E28AD#FFFFFF#000000##FFFFFF
##5E28AD1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB1
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#484C69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e28ad;
/* rgb */ color: rgb(94, 40, 173);
/* oklch */ color: oklch(43.4% 0.195 295.5);
Tailwind
colors: {
  custom: {
    50: '#9368c6',
    500: '#5e28ad',
    950: '#000000',
  },
}
SCSS
$custom: #5e28ad;
$custom-light: #9368c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e28ad",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 264.361,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43389,
    "c": 0.19478,
    "h": 295.5
  },
  "luminance": 0.06914
}

Semantic roles & 50–950 ramp

primary
#5E28AD
secondary
#A1C56C
accent
#E642A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E28AD

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

Preview Lab → · Contrast checker → · Palette generator →

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