#5E2AAB#5E2AAB

#5E2AAB is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.191 H 295.7°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5E2AAB
RGBrgb(94, 42, 171)
HSLhsl(264, 61%, 42%)
HSVhsv(264, 75%, 67%)
CMYKcmyk(45%, 75.4%, 0%, 32.9%)
CIE-LABlab(31.75, 50.41, -59.94)
CIE-LCHlch(31.75, 78.32, 310.07°)
OKLaboklab(43.43% 0.0826 -0.1717)
OKLCHoklch(43.43% 0.191 295.7)
XYZxyz(12.7928, 6.9756, 39.1926)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2AAB #77AB2A
analogous
#2A37AB #5E2AAB #9F2AAB
triadic
#5E2AAB #AB5E2A #2AAB5E
tetradic
#5E2AAB #AB2A37 #77AB2A #2AAB9F
square
#5E2AAB #AB2A37 #77AB2A #2AAB9F
split-complementary
#5E2AAB #AB9F2A #37AB2A
monochromatic
#281249 #431E7A #5E2AAB #7B42D1 #9D73DD

Accessibility & contrast

On white

8.77
#5E2AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5E2AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2AAB
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2AAB#FFFFFF#000000##FFFFFF
##5E2AAB1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#494C69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e2aab;
/* rgb */ color: rgb(94, 42, 171);
/* oklch */ color: oklch(43.4% 0.191 295.7);
Tailwind
colors: {
  custom: {
    50: '#9369c5',
    500: '#5e2aab',
    950: '#000000',
  },
}
SCSS
$custom: #5e2aab;
$custom-light: #9369c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2aab",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 264.186,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43434,
    "c": 0.19051,
    "h": 295.7
  },
  "luminance": 0.06976
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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