#5E39BB#5E39BB

#5E39BB is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.7% C 0.192 H 290.0°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5E39BB
RGBrgb(94, 57, 187)
HSLhsl(257, 53%, 48%)
HSVhsv(257, 70%, 73%)
CMYKcmyk(49.7%, 69.5%, 0%, 26.7%)
CIE-LABlab(35.78, 47.30, -62.87)
CIE-LCHlch(35.78, 78.67, 306.96°)
OKLaboklab(46.71% 0.0655 -0.1804)
OKLCHoklch(46.71% 0.192 290)
XYZxyz(15.0463, 8.8932, 47.9278)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E39BB #96BB39
analogous
#3955BB #5E39BB #9F39BB
triadic
#5E39BB #BB5E39 #39BB5E
tetradic
#5E39BB #BB3955 #96BB39 #39BB9F
square
#5E39BB #BB3955 #96BB39 #39BB9F
split-complementary
#5E39BB #BB9F39 #55BB39
monochromatic
#2F1C5D #462B8C #5E39BB #8162CF #A791DD

Accessibility & contrast

On white

7.56
#5E39BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5E39BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E39BB
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E39BB#FFFFFF#000000##FFFFFF
##5E39BB1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#3E5A76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5e39bb;
/* rgb */ color: rgb(94, 57, 187);
/* oklch */ color: oklch(46.7% 0.192 290.0);
Tailwind
colors: {
  custom: {
    50: '#9472d0',
    500: '#5e39bb',
    950: '#000000',
  },
}
SCSS
$custom: #5e39bb;
$custom-light: #9472d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e39bb",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 187
  },
  "hsl": {
    "h": 257.077,
    "s": 53.279,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46708,
    "c": 0.19189,
    "h": 290
  },
  "luminance": 0.08894
}

Semantic roles & 50–950 ramp

primary
#5E39BB
secondary
#B6C887
accent
#DD4BB3
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5E39BB

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

Preview Lab → · Contrast checker → · Palette generator →

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