#5E2AA4#5E2AA4

#5E2AA4 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.183 H 297.4°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5E2AA4
RGBrgb(94, 42, 164)
HSLhsl(266, 59%, 40%)
HSVhsv(266, 74%, 64%)
CMYKcmyk(42.7%, 74.4%, 0%, 35.7%)
CIE-LABlab(31.15, 48.59, -56.71)
CIE-LCHlch(31.15, 74.68, 310.59°)
OKLaboklab(42.83% 0.0843 -0.1622)
OKLCHoklch(42.83% 0.183 297.4)
XYZxyz(12.1432, 6.7157, 35.7712)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2AA4 #70A42A
analogous
#2A33A4 #5E2AA4 #9B2AA4
triadic
#5E2AA4 #A45E2A #2AA45E
tetradic
#5E2AA4 #A42A33 #70A42A #2AA49B
square
#5E2AA4 #A42A33 #70A42A #2AA49B
split-complementary
#5E2AA4 #A49B2A #33A42A
monochromatic
#261143 #421E73 #5E2AA4 #7B3ECD #9C6EDA

Accessibility & contrast

On white

8.96
#5E2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5E2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2AA4
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2AA4#FFFFFF#000000##FFFFFF
##5E2AA41.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#4C4A65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2aa4;
/* rgb */ color: rgb(94, 42, 164);
/* oklch */ color: oklch(42.8% 0.183 297.4);
Tailwind
colors: {
  custom: {
    50: '#9269c0',
    500: '#5e2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #5e2aa4;
$custom-light: #9269c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2aa4",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 265.574,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42825,
    "c": 0.18278,
    "h": 297.4
  },
  "luminance": 0.06716
}

Semantic roles & 50–950 ramp

primary
#5E2AA4
secondary
#9BC169
accent
#E2459F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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