#5E2AA6#5E2AA6

#5E2AA6 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.185 H 296.9°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5E2AA6
RGBrgb(94, 42, 166)
HSLhsl(265, 60%, 41%)
HSVhsv(265, 75%, 65%)
CMYKcmyk(43.4%, 74.7%, 0%, 34.9%)
CIE-LABlab(31.32, 49.11, -57.64)
CIE-LCHlch(31.32, 75.72, 310.43°)
OKLaboklab(43% 0.0838 -0.1649)
OKLCHoklch(43% 0.185 296.9)
XYZxyz(12.3252, 6.7885, 36.7299)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2AA6 #72A62A
analogous
#2A34A6 #5E2AA6 #9C2AA6
triadic
#5E2AA6 #A65E2A #2AA65E
tetradic
#5E2AA6 #A62A34 #72A62A #2AA69C
square
#5E2AA6 #A62A34 #72A62A #2AA69C
split-complementary
#5E2AA6 #A69C2A #34A62A
monochromatic
#271144 #421E75 #5E2AA6 #7B3FCE #9D70DB

Accessibility & contrast

On white

8.91
#5E2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5E2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2AA6
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2AA6#FFFFFF#000000##FFFFFF
##5E2AA61.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#4B4A66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2aa6;
/* rgb */ color: rgb(94, 42, 166);
/* oklch */ color: oklch(43.0% 0.185 296.9);
Tailwind
colors: {
  custom: {
    50: '#9269c1',
    500: '#5e2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #5e2aa6;
$custom-light: #9269c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2aa6",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 265.161,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42997,
    "c": 0.18499,
    "h": 296.9
  },
  "luminance": 0.06789
}

Semantic roles & 50–950 ramp

primary
#5E2AA6
secondary
#9DC26A
accent
#E345A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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