#5E1E86#5E1E86

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

Color values

HEX#5E1E86
RGBrgb(94, 30, 134)
HSLhsl(277, 63%, 32%)
HSVhsv(277, 78%, 53%)
CMYKcmyk(29.9%, 77.6%, 0%, 47.5%)
CIE-LABlab(26.82, 46.52, -45.33)
CIE-LCHlch(26.82, 64.95, 315.74°)
OKLaboklab(39% 0.1024 -0.1287)
OKLCHoklch(39% 0.164 308.5)
XYZxyz(9.3826, 5.0296, 23.0262)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E86 #46861E
analogous
#2A1E86 #5E1E86 #861E7A
triadic
#5E1E86 #865E1E #1E865E
tetradic
#5E1E86 #862A1E #46861E #1E7A86
square
#5E1E86 #862A1E #46861E #1E7A86
split-complementary
#5E1E86 #7A861E #1E862A
monochromatic
#180822 #3B1354 #5E1E86 #8129B8 #A048D6

Accessibility & contrast

On white

10.47
#5E1E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1E86
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E86#FFFFFF#000000##FFFFFF
##5E1E861.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#583751
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e1e86;
/* rgb */ color: rgb(94, 30, 134);
/* oklch */ color: oklch(39.0% 0.164 308.5);
Tailwind
colors: {
  custom: {
    50: '#9061aa',
    500: '#5e1e86',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e86;
$custom-light: #9061aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e86",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 134
  },
  "hsl": {
    "h": 276.923,
    "s": 63.415,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39003,
    "c": 0.16444,
    "h": 308.5
  },
  "luminance": 0.05029
}

Semantic roles & 50–950 ramp

primary
#5E1E86
secondary
#73B847
accent
#E64181
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1E86

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

Preview Lab → · Contrast checker → · Palette generator →

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