#5E39B1#5E39B1

#5E39B1 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.9% C 0.180 H 291.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5E39B1
RGBrgb(94, 57, 177)
HSLhsl(259, 51%, 46%)
HSVhsv(259, 68%, 69%)
CMYKcmyk(46.9%, 67.8%, 0%, 30.6%)
CIE-LABlab(34.96, 44.47, -58.28)
CIE-LCHlch(34.96, 73.31, 307.35°)
OKLaboklab(45.87% 0.0672 -0.1669)
OKLCHoklch(45.87% 0.18 291.9)
XYZxyz(14.0128, 8.4798, 42.4849)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E39B1 #8CB139
analogous
#3950B1 #5E39B1 #9A39B1
triadic
#5E39B1 #B15E39 #39B15E
tetradic
#5E39B1 #B13950 #8CB139 #39B19A
square
#5E39B1 #B13950 #8CB139 #39B19A
split-complementary
#5E39B1 #B19A39 #50B139
monochromatic
#2D1B54 #452A83 #5E39B1 #7E5DCB #A38BDA

Accessibility & contrast

On white

7.79
#5E39B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5E39B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E39B1
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E39B1#FFFFFF#000000##FFFFFF
##5E39B11.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#455770
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e39b1;
/* rgb */ color: rgb(94, 57, 177);
/* oklch */ color: oklch(45.9% 0.180 291.9);
Tailwind
colors: {
  custom: {
    50: '#9372c9',
    500: '#5e39b1',
    950: '#000000',
  },
}
SCSS
$custom: #5e39b1;
$custom-light: #9372c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e39b1",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 177
  },
  "hsl": {
    "h": 258.5,
    "s": 51.282,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45871,
    "c": 0.17989,
    "h": 291.9
  },
  "luminance": 0.0848
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E39B1

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

Preview Lab → · Contrast checker → · Palette generator →

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