#5E39AC#5E39AC

#5E39AC is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.174 H 293.0°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5E39AC
RGBrgb(94, 57, 172)
HSLhsl(259, 50%, 45%)
HSVhsv(259, 67%, 67%)
CMYKcmyk(45.3%, 66.9%, 0%, 32.5%)
CIE-LABlab(34.57, 43.06, -55.94)
CIE-LCHlch(34.57, 70.60, 307.59°)
OKLaboklab(45.46% 0.0678 -0.16)
OKLCHoklch(45.46% 0.174 293)
XYZxyz(13.5236, 8.2841, 39.9082)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E39AC #87AC39
analogous
#394EAC #5E39AC #9739AC
triadic
#5E39AC #AC5E39 #39AC5E
tetradic
#5E39AC #AC394E #87AC39 #39AC97
square
#5E39AC #AC394E #87AC39 #39AC97
split-complementary
#5E39AC #AC9739 #4EAC39
monochromatic
#2C1B50 #452A7E #5E39AC #7D5AC8 #A288D8

Accessibility & contrast

On white

7.90
#5E39AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5E39AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E39AC
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E39AC#FFFFFF#000000##FFFFFF
##5E39AC1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#004FAA
Tritanopia (blue-blind)
#47556D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e39ac;
/* rgb */ color: rgb(94, 57, 172);
/* oklch */ color: oklch(45.5% 0.174 293.0);
Tailwind
colors: {
  custom: {
    50: '#9272c6',
    500: '#5e39ac',
    950: '#000000',
  },
}
SCSS
$custom: #5e39ac;
$custom-light: #9272c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e39ac",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 172
  },
  "hsl": {
    "h": 259.304,
    "s": 50.218,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45463,
    "c": 0.17381,
    "h": 293
  },
  "luminance": 0.08284
}

Semantic roles & 50–950 ramp

primary
#5E39AC
secondary
#ACC27F
accent
#DA4EAD
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E39AC

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

Preview Lab → · Contrast checker → · Palette generator →

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