#5E39B2#5E39B2

#5E39B2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.181 H 291.7°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5E39B2
RGBrgb(94, 57, 178)
HSLhsl(258, 51%, 46%)
HSVhsv(258, 68%, 70%)
CMYKcmyk(47.2%, 68%, 0%, 30.2%)
CIE-LABlab(35.04, 44.75, -58.74)
CIE-LCHlch(35.04, 73.85, 307.30°)
OKLaboklab(45.95% 0.067 -0.1682)
OKLCHoklch(45.95% 0.181 291.7)
XYZxyz(14.1129, 8.5198, 43.0117)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E39B2 #8DB239
analogous
#3950B2 #5E39B2 #9A39B2
triadic
#5E39B2 #B25E39 #39B25E
tetradic
#5E39B2 #B23950 #8DB239 #39B29A
square
#5E39B2 #B23950 #8DB239 #39B29A
split-complementary
#5E39B2 #B29A39 #50B239
monochromatic
#2D1B55 #462A84 #5E39B2 #7F5DCB #A38BDA

Accessibility & contrast

On white

7.77
#5E39B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E39B2
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E39B2#FFFFFF#000000##FFFFFF
##5E39B21.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#445771
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e39b2;
/* rgb */ color: rgb(94, 57, 178);
/* oklch */ color: oklch(46.0% 0.181 291.7);
Tailwind
colors: {
  custom: {
    50: '#9372ca',
    500: '#5e39b2',
    950: '#000000',
  },
}
SCSS
$custom: #5e39b2;
$custom-light: #9372ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5e39b2",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 258.347,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45953,
    "c": 0.1811,
    "h": 291.7
  },
  "luminance": 0.0852
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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