#5E39B3#5E39B3

#5E39B3 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.0% C 0.182 H 291.5°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5E39B3
RGBrgb(94, 57, 179)
HSLhsl(258, 52%, 46%)
HSVhsv(258, 68%, 70%)
CMYKcmyk(47.5%, 68.2%, 0%, 29.8%)
CIE-LABlab(35.12, 45.04, -59.21)
CIE-LCHlch(35.12, 74.39, 307.26°)
OKLaboklab(46.04% 0.0668 -0.1696)
OKLCHoklch(46.04% 0.182 291.5)
XYZxyz(14.2136, 8.5601, 43.5424)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E39B3 #8EB339
analogous
#3951B3 #5E39B3 #9B39B3
triadic
#5E39B3 #B35E39 #39B35E
tetradic
#5E39B3 #B33951 #8EB339 #39B39B
square
#5E39B3 #B33951 #8EB339 #39B39B
split-complementary
#5E39B3 #B39B39 #51B339
monochromatic
#2D1B56 #462A85 #5E39B3 #7F5ECC #A48CDA

Accessibility & contrast

On white

7.74
#5E39B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5E39B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E39B3
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E39B3#FFFFFF#000000##FFFFFF
##5E39B31.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#435771
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5e39b3;
/* rgb */ color: rgb(94, 57, 179);
/* oklch */ color: oklch(46.0% 0.182 291.5);
Tailwind
colors: {
  custom: {
    50: '#9372cb',
    500: '#5e39b3',
    950: '#000000',
  },
}
SCSS
$custom: #5e39b3;
$custom-light: #9372cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e39b3",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 179
  },
  "hsl": {
    "h": 258.197,
    "s": 51.695,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46036,
    "c": 0.18231,
    "h": 291.5
  },
  "luminance": 0.08561
}

Semantic roles & 50–950 ramp

primary
#5E39B3
secondary
#B1C583
accent
#DB4DB0
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E39B3

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

Preview Lab → · Contrast checker → · Palette generator →

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