#5E39B9#5E39B9

#5E39B9 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.5% C 0.190 H 290.3°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5E39B9
RGBrgb(94, 57, 185)
HSLhsl(257, 53%, 47%)
HSVhsv(257, 69%, 73%)
CMYKcmyk(49.2%, 69.2%, 0%, 27.5%)
CIE-LABlab(35.61, 46.73, -61.96)
CIE-LCHlch(35.61, 77.61, 307.03°)
OKLaboklab(46.54% 0.0659 -0.1777)
OKLCHoklch(46.54% 0.19 290.3)
XYZxyz(14.8337, 8.8081, 46.8081)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E39B9 #94B939
analogous
#3954B9 #5E39B9 #9E39B9
triadic
#5E39B9 #B95E39 #39B95E
tetradic
#5E39B9 #B93954 #94B939 #39B99E
square
#5E39B9 #B93954 #94B939 #39B99E
split-complementary
#5E39B9 #B99E39 #54B939
monochromatic
#2E1C5B #462B8A #5E39B9 #8161CE #A690DD

Accessibility & contrast

On white

7.60
#5E39B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5E39B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E39B9
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E39B9#FFFFFF#000000##FFFFFF
##5E39B91.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0051B6
Tritanopia (blue-blind)
#405974
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5e39b9;
/* rgb */ color: rgb(94, 57, 185);
/* oklch */ color: oklch(46.5% 0.190 290.3);
Tailwind
colors: {
  custom: {
    50: '#9472cf',
    500: '#5e39b9',
    950: '#000000',
  },
}
SCSS
$custom: #5e39b9;
$custom-light: #9472cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e39b9",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 185
  },
  "hsl": {
    "h": 257.344,
    "s": 52.893,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46538,
    "c": 0.1895,
    "h": 290.3
  },
  "luminance": 0.08809
}

Semantic roles & 50–950 ramp

primary
#5E39B9
secondary
#B5C886
accent
#DC4BB2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5E39B9

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

Preview Lab → · Contrast checker → · Palette generator →

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