#5E2AAA#5E2AAA

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

Color values

HEX#5E2AAA
RGBrgb(94, 42, 170)
HSLhsl(264, 60%, 42%)
HSVhsv(264, 75%, 67%)
CMYKcmyk(44.7%, 75.3%, 0%, 33.3%)
CIE-LABlab(31.66, 50.15, -59.48)
CIE-LCHlch(31.66, 77.80, 310.14°)
OKLaboklab(43.35% 0.0828 -0.1703)
OKLCHoklch(43.35% 0.189 295.9)
XYZxyz(12.6978, 6.9376, 38.6925)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2AAA #76AA2A
analogous
#2A36AA #5E2AAA #9E2AAA
triadic
#5E2AAA #AA5E2A #2AAA5E
tetradic
#5E2AAA #AA2A36 #76AA2A #2AAA9E
square
#5E2AAA #AA2A36 #76AA2A #2AAA9E
split-complementary
#5E2AAA #AA9E2A #36AA2A
monochromatic
#281248 #431E79 #5E2AAA #7B41D0 #9D72DC

Accessibility & contrast

On white

8.80
#5E2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5E2AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2AAA
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2AAA#FFFFFF#000000##FFFFFF
##5E2AAA1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#494C68
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2aaa;
/* rgb */ color: rgb(94, 42, 170);
/* oklch */ color: oklch(43.3% 0.189 295.9);
Tailwind
colors: {
  custom: {
    50: '#9369c4',
    500: '#5e2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5e2aaa;
$custom-light: #9369c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2aaa",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 264.375,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43346,
    "c": 0.18941,
    "h": 295.9
  },
  "luminance": 0.06938
}

Semantic roles & 50–950 ramp

primary
#5E2AAA
secondary
#A0C36C
accent
#E444A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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