#5E38AE#5E38AE

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

Color values

HEX#5E38AE
RGBrgb(94, 56, 174)
HSLhsl(259, 51%, 45%)
HSVhsv(259, 68%, 68%)
CMYKcmyk(46%, 67.8%, 0%, 31.8%)
CIE-LABlab(34.53, 44.17, -57.21)
CIE-LCHlch(34.53, 72.27, 307.67°)
OKLaboklab(45.48% 0.0686 -0.1637)
OKLCHoklch(45.48% 0.178 292.7)
XYZxyz(13.6681, 8.2636, 40.9111)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38AE #88AE38
analogous
#384DAE #5E38AE #9938AE
triadic
#5E38AE #AE5E38 #38AE5E
tetradic
#5E38AE #AE384D #88AE38 #38AE99
square
#5E38AE #AE384D #88AE38 #38AE99
split-complementary
#5E38AE #AE9938 #4DAE38
monochromatic
#2C1A51 #452980 #5E38AE #7E59CA #A288D9

Accessibility & contrast

On white

7.92
#5E38AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5E38AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38AE
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38AE#FFFFFF#000000##FFFFFF
##5E38AE1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#004FAC
Tritanopia (blue-blind)
#46556E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e38ae;
/* rgb */ color: rgb(94, 56, 174);
/* oklch */ color: oklch(45.5% 0.178 292.7);
Tailwind
colors: {
  custom: {
    50: '#9271c7',
    500: '#5e38ae',
    950: '#000000',
  },
}
SCSS
$custom: #5e38ae;
$custom-light: #9271c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38ae",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 259.322,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45483,
    "c": 0.17752,
    "h": 292.7
  },
  "luminance": 0.08264
}

Semantic roles & 50–950 ramp

primary
#5E38AE
secondary
#ADC37F
accent
#DB4DAD
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E38AE

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

Preview Lab → · Contrast checker → · Palette generator →

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