#5E1A8A#5E1A8A

#5E1A8A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.173 H 307.5°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5E1A8A
RGBrgb(94, 26, 138)
HSLhsl(276, 68%, 32%)
HSVhsv(276, 81%, 54%)
CMYKcmyk(31.9%, 81.2%, 0%, 45.9%)
CIE-LABlab(26.60, 49.00, -48.18)
CIE-LCHlch(26.60, 68.72, 315.48°)
OKLaboklab(38.95% 0.105 -0.137)
OKLCHoklch(38.95% 0.173 307.5)
XYZxyz(9.5720, 4.9536, 24.4917)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A8A #468A1A
analogous
#261A8A #5E1A8A #8A1A7E
triadic
#5E1A8A #8A5E1A #1A8A5E
tetradic
#5E1A8A #8A261A #468A1A #1A7E8A
square
#5E1A8A #8A261A #468A1A #1A7E8A
split-complementary
#5E1A8A #7E8A1A #1A8A26
monochromatic
#180723 #3B1057 #5E1A8A #8124BD #A043DC

Accessibility & contrast

On white

10.55
#5E1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5E1A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1A8A
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A8A#FFFFFF#000000##FFFFFF
##5E1A8A1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#573752
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e1a8a;
/* rgb */ color: rgb(94, 26, 138);
/* oklch */ color: oklch(39.0% 0.173 307.5);
Tailwind
colors: {
  custom: {
    50: '#9160ad',
    500: '#5e1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a8a;
$custom-light: #9160ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a8a",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 276.429,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38952,
    "c": 0.17264,
    "h": 307.5
  },
  "luminance": 0.04953
}

Semantic roles & 50–950 ramp

primary
#5E1A8A
secondary
#73BD43
accent
#EB3D81
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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