#5E3192#5E3192

#5E3192 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.3% C 0.153 H 301.4°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5E3192
RGBrgb(94, 49, 146)
HSLhsl(268, 50%, 38%)
HSVhsv(268, 66%, 57%)
CMYKcmyk(35.6%, 66.4%, 0%, 42.7%)
CIE-LABlab(31.00, 40.35, -45.99)
CIE-LCHlch(31.00, 61.18, 311.26°)
OKLaboklab(42.27% 0.0799 -0.1307)
OKLCHoklch(42.27% 0.153 301.4)
XYZxyz(10.9015, 6.6516, 27.8981)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3192 #659231
analogous
#313492 #5E3192 #8E3192
triadic
#5E3192 #925E31 #31925E
tetradic
#5E3192 #923134 #659231 #31928E
square
#5E3192 #923134 #659231 #31928E
split-complementary
#5E3192 #928E31 #349231
monochromatic
#231236 #402264 #5E3192 #7C41BF #9B6FCF

Accessibility & contrast

On white

9.01
#5E3192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5E3192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E3192
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3192#FFFFFF#000000##FFFFFF
##5E31921.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004895
Deuteranopia (green-blind)
#074890
Tritanopia (blue-blind)
#53475D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e3192;
/* rgb */ color: rgb(94, 49, 146);
/* oklch */ color: oklch(42.3% 0.153 301.4);
Tailwind
colors: {
  custom: {
    50: '#906cb3',
    500: '#5e3192',
    950: '#000000',
  },
}
SCSS
$custom: #5e3192;
$custom-light: #906cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3192",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 146
  },
  "hsl": {
    "h": 267.835,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42273,
    "c": 0.15321,
    "h": 301.4
  },
  "luminance": 0.06652
}

Semantic roles & 50–950 ramp

primary
#5E3192
secondary
#92B669
accent
#D94F99
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E3192

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

Preview Lab → · Contrast checker → · Palette generator →

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