#5E2AA1#5E2AA1

#5E2AA1 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.179 H 298.2°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5E2AA1
RGBrgb(94, 42, 161)
HSLhsl(266, 59%, 40%)
HSVhsv(266, 74%, 63%)
CMYKcmyk(41.6%, 73.9%, 0%, 36.9%)
CIE-LABlab(30.90, 47.81, -55.31)
CIE-LCHlch(30.90, 73.11, 310.84°)
OKLaboklab(42.57% 0.0849 -0.1581)
OKLCHoklch(42.57% 0.179 298.2)
XYZxyz(11.8754, 6.6086, 34.3612)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2AA1 #6DA12A
analogous
#2A32A1 #5E2AA1 #992AA1
triadic
#5E2AA1 #A15E2A #2AA15E
tetradic
#5E2AA1 #A12A32 #6DA12A #2AA199
square
#5E2AA1 #A12A32 #6DA12A #2AA199
split-complementary
#5E2AA1 #A1992A #32A12A
monochromatic
#251140 #421D70 #5E2AA1 #7B3CCC #9C6DD9

Accessibility & contrast

On white

9.04
#5E2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5E2AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2AA1
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2AA1#FFFFFF#000000##FFFFFF
##5E2AA11.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#00479F
Tritanopia (blue-blind)
#4D4863
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2aa1;
/* rgb */ color: rgb(94, 42, 161);
/* oklch */ color: oklch(42.6% 0.179 298.2);
Tailwind
colors: {
  custom: {
    50: '#9269be',
    500: '#5e2aa1',
    950: '#000000',
  },
}
SCSS
$custom: #5e2aa1;
$custom-light: #9269be;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2aa1",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 266.218,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42569,
    "c": 0.17945,
    "h": 298.2
  },
  "luminance": 0.06609
}

Semantic roles & 50–950 ramp

primary
#5E2AA1
secondary
#99C067
accent
#E2469E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E2AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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