#5D38AE#5D38AE

#5D38AE is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.177 H 292.2°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5D38AE
RGBrgb(93, 56, 174)
HSLhsl(259, 51%, 45%)
HSVhsv(259, 68%, 68%)
CMYKcmyk(46.6%, 67.8%, 0%, 31.8%)
CIE-LABlab(34.42, 43.98, -57.38)
CIE-LCHlch(34.42, 72.30, 307.47°)
OKLaboklab(45.38% 0.0672 -0.1643)
OKLCHoklch(45.38% 0.177 292.2)
XYZxyz(13.5662, 8.2110, 40.9063)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38AE #89AE38
analogous
#384EAE #5D38AE #9838AE
triadic
#5D38AE #AE5D38 #38AE5D
tetradic
#5D38AE #AE384E #89AE38 #38AE98
square
#5D38AE #AE384E #89AE38 #38AE98
split-complementary
#5D38AE #AE9838 #4EAE38
monochromatic
#2C1A51 #442980 #5D38AE #7D59CA #A188D9

Accessibility & contrast

On white

7.95
#5D38AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D38AE
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38AE#FFFFFF#000000##FFFFFF
##5D38AE1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d38ae;
/* rgb */ color: rgb(93, 56, 174);
/* oklch */ color: oklch(45.4% 0.177 292.2);
Tailwind
colors: {
  custom: {
    50: '#9271c7',
    500: '#5d38ae',
    950: '#000000',
  },
}
SCSS
$custom: #5d38ae;
$custom-light: #9271c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38ae",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 258.814,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45381,
    "c": 0.17749,
    "h": 292.2
  },
  "luminance": 0.08211
}

Semantic roles & 50–950 ramp

primary
#5D38AE
secondary
#AEC37F
accent
#DB4DAE
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D38AE

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

Preview Lab → · Contrast checker → · Palette generator →

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