#5E39B0#5E39B0

#5E39B0 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.179 H 292.1°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5E39B0
RGBrgb(94, 57, 176)
HSLhsl(259, 51%, 46%)
HSVhsv(259, 68%, 69%)
CMYKcmyk(46.6%, 67.6%, 0%, 31%)
CIE-LABlab(34.88, 44.19, -57.81)
CIE-LCHlch(34.88, 72.77, 307.39°)
OKLaboklab(45.79% 0.0673 -0.1655)
OKLCHoklch(45.79% 0.179 292.1)
XYZxyz(13.9135, 8.4401, 41.9619)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E39B0 #8BB039
analogous
#3950B0 #5E39B0 #9939B0
triadic
#5E39B0 #B05E39 #39B05E
tetradic
#5E39B0 #B03950 #8BB039 #39B099
square
#5E39B0 #B03950 #8BB039 #39B099
split-complementary
#5E39B0 #B09939 #50B039
monochromatic
#2D1B54 #452A82 #5E39B0 #7E5CCA #A38AD9

Accessibility & contrast

On white

7.81
#5E39B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5E39B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E39B0
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E39B0#FFFFFF#000000##FFFFFF
##5E39B01.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#0050AE
Tritanopia (blue-blind)
#455670
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e39b0;
/* rgb */ color: rgb(94, 57, 176);
/* oklch */ color: oklch(45.8% 0.179 292.1);
Tailwind
colors: {
  custom: {
    50: '#9372c8',
    500: '#5e39b0',
    950: '#000000',
  },
}
SCSS
$custom: #5e39b0;
$custom-light: #9372c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e39b0",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 176
  },
  "hsl": {
    "h": 258.655,
    "s": 51.073,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45789,
    "c": 0.17868,
    "h": 292.1
  },
  "luminance": 0.08441
}

Semantic roles & 50–950 ramp

primary
#5E39B0
secondary
#AFC481
accent
#DB4DAF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E39B0

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

Preview Lab → · Contrast checker → · Palette generator →

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