#5E3391#5E3391

#5E3391 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.5% C 0.149 H 301.3°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#5E3391
RGBrgb(94, 51, 145)
HSLhsl(267, 48%, 38%)
HSVhsv(267, 65%, 57%)
CMYKcmyk(35.2%, 64.8%, 0%, 43.1%)
CIE-LABlab(31.33, 38.99, -44.85)
CIE-LCHlch(31.33, 59.43, 311.00°)
OKLaboklab(42.49% 0.0776 -0.1274)
OKLCHoklch(42.49% 0.149 301.3)
XYZxyz(10.9095, 6.7916, 27.5187)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3391 #669133
analogous
#333791 #5E3391 #8D3391
triadic
#5E3391 #915E33 #33915E
tetradic
#5E3391 #913337 #669133 #33918D
square
#5E3391 #913337 #669133 #33918D
split-complementary
#5E3391 #918D33 #379133
monochromatic
#231336 #412364 #5E3391 #7B44BD #9B71CD

Accessibility & contrast

On white

8.90
#5E3391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5E3391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E3391
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3391#FFFFFF#000000##FFFFFF
##5E33911.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#10498F
Tritanopia (blue-blind)
#53475D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e3391;
/* rgb */ color: rgb(94, 51, 145);
/* oklch */ color: oklch(42.5% 0.149 301.3);
Tailwind
colors: {
  custom: {
    50: '#906db2',
    500: '#5e3391',
    950: '#000000',
  },
}
SCSS
$custom: #5e3391;
$custom-light: #906db2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3391",
  "rgb": {
    "r": 94,
    "g": 51,
    "b": 145
  },
  "hsl": {
    "h": 267.447,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42486,
    "c": 0.14914,
    "h": 301.3
  },
  "luminance": 0.06792
}

Semantic roles & 50–950 ramp

primary
#5E3391
secondary
#93B56B
accent
#D8509A
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E3391

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

Preview Lab → · Contrast checker → · Palette generator →

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