#5E1A89#5E1A89

#5E1A89 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.172 H 307.8°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5E1A89
RGBrgb(94, 26, 137)
HSLhsl(277, 68%, 32%)
HSVhsv(277, 81%, 54%)
CMYKcmyk(31.4%, 81%, 0%, 46.3%)
CIE-LABlab(26.52, 48.77, -47.69)
CIE-LCHlch(26.52, 68.21, 315.64°)
OKLaboklab(38.87% 0.1053 -0.1356)
OKLCHoklch(38.87% 0.172 307.8)
XYZxyz(9.4999, 4.9248, 24.1122)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A89 #45891A
analogous
#271A89 #5E1A89 #891A7D
triadic
#5E1A89 #895E1A #1A895E
tetradic
#5E1A89 #89271A #45891A #1A7D89
square
#5E1A89 #89271A #45891A #1A7D89
split-complementary
#5E1A89 #7D891A #1A8927
monochromatic
#170622 #3B1056 #5E1A89 #8124BC #A042DB

Accessibility & contrast

On white

10.58
#5E1A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1A89
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A89#FFFFFF#000000##FFFFFF
##5E1A891.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1a89;
/* rgb */ color: rgb(94, 26, 137);
/* oklch */ color: oklch(38.9% 0.172 307.8);
Tailwind
colors: {
  custom: {
    50: '#9060ac',
    500: '#5e1a89',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a89;
$custom-light: #9060ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a89",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 276.757,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38869,
    "c": 0.17166,
    "h": 307.8
  },
  "luminance": 0.04925
}

Semantic roles & 50–950 ramp

primary
#5E1A89
secondary
#72BC43
accent
#EB3D80
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1A89

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

Preview Lab → · Contrast checker → · Palette generator →

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