#5E39B4#5E39B4

#5E39B4 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.1% C 0.184 H 291.3°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5E39B4
RGBrgb(94, 57, 180)
HSLhsl(258, 52%, 46%)
HSVhsv(258, 68%, 71%)
CMYKcmyk(47.8%, 68.3%, 0%, 29.4%)
CIE-LABlab(35.20, 45.32, -59.67)
CIE-LCHlch(35.20, 74.93, 307.22°)
OKLaboklab(46.12% 0.0667 -0.171)
OKLCHoklch(46.12% 0.184 291.3)
XYZxyz(14.3151, 8.6007, 44.0770)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E39B4 #8FB439
analogous
#3952B4 #5E39B4 #9C39B4
triadic
#5E39B4 #B45E39 #39B45E
tetradic
#5E39B4 #B43952 #8FB439 #39B49C
square
#5E39B4 #B43952 #8FB439 #39B49C
split-complementary
#5E39B4 #B49C39 #52B439
monochromatic
#2D1C57 #462A86 #5E39B4 #7F5ECC #A48DDB

Accessibility & contrast

On white

7.72
#5E39B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5E39B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E39B4
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E39B4#FFFFFF#000000##FFFFFF
##5E39B41.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#435872
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5e39b4;
/* rgb */ color: rgb(94, 57, 180);
/* oklch */ color: oklch(46.1% 0.184 291.3);
Tailwind
colors: {
  custom: {
    50: '#9372cb',
    500: '#5e39b4',
    950: '#000000',
  },
}
SCSS
$custom: #5e39b4;
$custom-light: #9372cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e39b4",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 180
  },
  "hsl": {
    "h": 258.049,
    "s": 51.899,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46119,
    "c": 0.18351,
    "h": 291.3
  },
  "luminance": 0.08601
}

Semantic roles & 50–950 ramp

primary
#5E39B4
secondary
#B2C583
accent
#DB4CB0
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E39B4

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

Preview Lab → · Contrast checker → · Palette generator →

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