#5E39B7#5E39B7

#5E39B7 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.187 H 290.7°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5E39B7
RGBrgb(94, 57, 183)
HSLhsl(258, 53%, 47%)
HSVhsv(258, 69%, 72%)
CMYKcmyk(48.6%, 68.9%, 0%, 28.2%)
CIE-LABlab(35.45, 46.17, -61.04)
CIE-LCHlch(35.45, 76.54, 307.10°)
OKLaboklab(46.37% 0.0662 -0.175)
OKLCHoklch(46.37% 0.187 290.7)
XYZxyz(14.6240, 8.7243, 45.7040)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E39B7 #92B739
analogous
#3953B7 #5E39B7 #9D39B7
triadic
#5E39B7 #B75E39 #39B75E
tetradic
#5E39B7 #B73953 #92B739 #39B79D
square
#5E39B7 #B73953 #92B739 #39B79D
split-complementary
#5E39B7 #B79D39 #53B739
monochromatic
#2E1C5A #462A88 #5E39B7 #8060CD #A58EDC

Accessibility & contrast

On white

7.65
#5E39B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5E39B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E39B7
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E39B7#FFFFFF#000000##FFFFFF
##5E39B71.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0051B4
Tritanopia (blue-blind)
#415973
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5e39b7;
/* rgb */ color: rgb(94, 57, 183);
/* oklch */ color: oklch(46.4% 0.187 290.7);
Tailwind
colors: {
  custom: {
    50: '#9472ce',
    500: '#5e39b7',
    950: '#000000',
  },
}
SCSS
$custom: #5e39b7;
$custom-light: #9472ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5e39b7",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 257.619,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46369,
    "c": 0.18711,
    "h": 290.7
  },
  "luminance": 0.08725
}

Semantic roles & 50–950 ramp

primary
#5E39B7
secondary
#B3C785
accent
#DC4CB2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5E39B7

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

Preview Lab → · Contrast checker → · Palette generator →

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