#5E38AC#5E38AC

#5E38AC is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.3% C 0.175 H 293.2°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5E38AC
RGBrgb(94, 56, 172)
HSLhsl(260, 51%, 45%)
HSVhsv(260, 67%, 67%)
CMYKcmyk(45.3%, 67.4%, 0%, 32.5%)
CIE-LABlab(34.37, 43.61, -56.27)
CIE-LCHlch(34.37, 71.19, 307.78°)
OKLaboklab(45.32% 0.0689 -0.161)
OKLCHoklch(45.32% 0.175 293.2)
XYZxyz(13.4746, 8.1862, 39.8919)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38AC #86AC38
analogous
#384CAC #5E38AC #9838AC
triadic
#5E38AC #AC5E38 #38AC5E
tetradic
#5E38AC #AC384C #86AC38 #38AC98
square
#5E38AC #AC384C #86AC38 #38AC98
split-complementary
#5E38AC #AC9838 #4CAC38
monochromatic
#2C1A50 #45297E #5E38AC #7D58C9 #A187D8

Accessibility & contrast

On white

7.96
#5E38AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5E38AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38AC
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38AC#FFFFFF#000000##FFFFFF
##5E38AC1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e38ac;
/* rgb */ color: rgb(94, 56, 172);
/* oklch */ color: oklch(45.3% 0.175 293.2);
Tailwind
colors: {
  custom: {
    50: '#9271c6',
    500: '#5e38ac',
    950: '#000000',
  },
}
SCSS
$custom: #5e38ac;
$custom-light: #9271c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38ac",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 259.655,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45319,
    "c": 0.17511,
    "h": 293.2
  },
  "luminance": 0.08187
}

Semantic roles & 50–950 ramp

primary
#5E38AC
secondary
#ACC27E
accent
#DA4DAC
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E38AC

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

Preview Lab → · Contrast checker → · Palette generator →

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