#5E3EBA#5E3EBA

#5E3EBA is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.3% C 0.185 H 289.2°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5E3EBA
RGBrgb(94, 62, 186)
HSLhsl(255, 50%, 49%)
HSVhsv(255, 67%, 73%)
CMYKcmyk(49.5%, 66.7%, 0%, 27.1%)
CIE-LABlab(36.69, 44.30, -60.80)
CIE-LCHlch(36.69, 75.22, 306.08°)
OKLaboklab(47.33% 0.0609 -0.1743)
OKLCHoklch(47.33% 0.185 289.2)
XYZxyz(15.1991, 9.3695, 47.4525)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3EBA #9ABA3E
analogous
#3E5CBA #5E3EBA #9C3EBA
triadic
#5E3EBA #BA5E3E #3EBA5E
tetradic
#5E3EBA #BA3E5C #9ABA3E #3EBA9C
square
#5E3EBA #BA3E5C #9ABA3E #3EBA9C
split-complementary
#5E3EBA #BA9C3E #5CBA3E
monochromatic
#301F5E #472F8C #5E3EBA #8268CD #A896DC

Accessibility & contrast

On white

7.31
#5E3EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5E3EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E3EBA
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3EBA#FFFFFF#000000##FFFFFF
##5E3EBA1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#3F5D77
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5e3eba;
/* rgb */ color: rgb(94, 62, 186);
/* oklch */ color: oklch(47.3% 0.185 289.2);
Tailwind
colors: {
  custom: {
    50: '#9475d0',
    500: '#5e3eba',
    950: '#000000',
  },
}
SCSS
$custom: #5e3eba;
$custom-light: #9475d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3eba",
  "rgb": {
    "r": 94,
    "g": 62,
    "b": 186
  },
  "hsl": {
    "h": 255.484,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47334,
    "c": 0.18461,
    "h": 289.2
  },
  "luminance": 0.0937
}

Semantic roles & 50–950 ramp

primary
#5E3EBA
secondary
#B8C88C
accent
#DA4EB6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5E3EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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