#5E2AA7#5E2AA7

#5E2AA7 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.186 H 296.7°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5E2AA7
RGBrgb(94, 42, 167)
HSLhsl(265, 60%, 41%)
HSVhsv(265, 75%, 65%)
CMYKcmyk(43.7%, 74.9%, 0%, 34.5%)
CIE-LABlab(31.41, 49.37, -58.10)
CIE-LCHlch(31.41, 76.24, 310.36°)
OKLaboklab(43.08% 0.0835 -0.1663)
OKLCHoklch(43.08% 0.186 296.7)
XYZxyz(12.4173, 6.8254, 37.2149)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2AA7 #73A72A
analogous
#2A34A7 #5E2AA7 #9C2AA7
triadic
#5E2AA7 #A75E2A #2AA75E
tetradic
#5E2AA7 #A72A34 #73A72A #2AA79C
square
#5E2AA7 #A72A34 #73A72A #2AA79C
split-complementary
#5E2AA7 #A79C2A #34A72A
monochromatic
#271145 #421E76 #5E2AA7 #7B3FCF #9D70DB

Accessibility & contrast

On white

8.88
#5E2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5E2AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2AA7
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2AA7#FFFFFF#000000##FFFFFF
##5E2AA71.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0048A5
Tritanopia (blue-blind)
#4B4B66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2aa7;
/* rgb */ color: rgb(94, 42, 167);
/* oklch */ color: oklch(43.1% 0.186 296.7);
Tailwind
colors: {
  custom: {
    50: '#9369c2',
    500: '#5e2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #5e2aa7;
$custom-light: #9369c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2aa7",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 264.96,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43084,
    "c": 0.18609,
    "h": 296.7
  },
  "luminance": 0.06826
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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