#5E28AC#5E28AC

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

Color values

HEX#5E28AC
RGBrgb(94, 40, 172)
HSLhsl(265, 62%, 42%)
HSVhsv(265, 77%, 67%)
CMYKcmyk(45.3%, 76.7%, 0%, 32.5%)
CIE-LABlab(31.52, 51.58, -60.91)
CIE-LCHlch(31.52, 79.82, 310.26°)
OKLaboklab(43.3% 0.084 -0.1745)
OKLCHoklch(43.3% 0.194 295.7)
XYZxyz(12.8193, 6.8755, 39.6734)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E28AC #76AC28
analogous
#2834AC #5E28AC #A028AC
triadic
#5E28AC #AC5E28 #28AC5E
tetradic
#5E28AC #AC2834 #76AC28 #28ACA0
square
#5E28AC #AC2834 #76AC28 #28ACA0
split-complementary
#5E28AC #ACA028 #34AC28
monochromatic
#281149 #431C7A #5E28AC #7B3FD2 #9D71DE

Accessibility & contrast

On white

8.84
#5E28AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E28AC
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E28AC#FFFFFF#000000##FFFFFF
##5E28AC1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e28ac;
/* rgb */ color: rgb(94, 40, 172);
/* oklch */ color: oklch(43.3% 0.194 295.7);
Tailwind
colors: {
  custom: {
    50: '#9368c6',
    500: '#5e28ac',
    950: '#000000',
  },
}
SCSS
$custom: #5e28ac;
$custom-light: #9368c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e28ac",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 264.545,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.433,
    "c": 0.1937,
    "h": 295.7
  },
  "luminance": 0.06876
}

Semantic roles & 50–950 ramp

primary
#5E28AC
secondary
#A0C56B
accent
#E542A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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