#5E1A8E#5E1A8E

#5E1A8E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.177 H 306.1°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#5E1A8E
RGBrgb(94, 26, 142)
HSLhsl(275, 69%, 33%)
HSVhsv(275, 82%, 56%)
CMYKcmyk(33.8%, 81.7%, 0%, 44.3%)
CIE-LABlab(26.94, 49.91, -50.12)
CIE-LCHlch(26.94, 70.74, 314.88°)
OKLaboklab(39.29% 0.1039 -0.1427)
OKLCHoklch(39.29% 0.177 306.1)
XYZxyz(9.8669, 5.0716, 26.0450)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A8E #4A8E1A
analogous
#241A8E #5E1A8E #8E1A84
triadic
#5E1A8E #8E5E1A #1A8E5E
tetradic
#5E1A8E #8E241A #4A8E1A #1A848E
square
#5E1A8E #8E241A #4A8E1A #1A848E
split-complementary
#5E1A8E #848E1A #1A8E24
monochromatic
#1A0727 #3C115A #5E1A8E #8023C2 #9E45DD

Accessibility & contrast

On white

10.43
#5E1A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5E1A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1A8E
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A8E#FFFFFF#000000##FFFFFF
##5E1A8E1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#553955
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1a8e;
/* rgb */ color: rgb(94, 26, 142);
/* oklch */ color: oklch(39.3% 0.177 306.1);
Tailwind
colors: {
  custom: {
    50: '#9160b0',
    500: '#5e1a8e',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a8e;
$custom-light: #9160b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a8e",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 275.172,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39291,
    "c": 0.17656,
    "h": 306.1
  },
  "luminance": 0.05071
}

Semantic roles & 50–950 ramp

primary
#5E1A8E
secondary
#77BE45
accent
#EC3C85
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E1A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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