#5D4ABA#5D4ABA

#5D4ABA is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.1% C 0.169 H 286.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#5D4ABA
RGBrgb(93, 74, 186)
HSLhsl(250, 45%, 51%)
HSVhsv(250, 60%, 73%)
CMYKcmyk(50%, 60.2%, 0%, 27.1%)
CIE-LABlab(39.19, 37.17, -56.73)
CIE-LCHlch(39.19, 67.83, 303.23°)
OKLaboklab(49.13% 0.0471 -0.1624)
OKLCHoklch(49.13% 0.169 286.2)
XYZxyz(15.8233, 10.7691, 47.6897)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4ABA #A7BA4A
analogous
#4A6FBA #5D4ABA #954ABA
triadic
#5D4ABA #BA5D4A #4ABA5D
tetradic
#5D4ABA #BA4A6F #A7BA4A #4ABA95
square
#5D4ABA #BA4A6F #A7BA4A #4ABA95
split-complementary
#5D4ABA #BA954A #6FBA4A
monochromatic
#302664 #463790 #5D4ABA #8576CB #ACA3DC

Accessibility & contrast

On white

6.66
#5D4ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5D4ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D4ABA
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4ABA#FFFFFF#000000##FFFFFF
##5D4ABA1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#3B647B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5d4aba;
/* rgb */ color: rgb(93, 74, 186);
/* oklch */ color: oklch(49.1% 0.169 286.2);
Tailwind
colors: {
  custom: {
    50: '#927dcf',
    500: '#5d4aba',
    950: '#000000',
  },
}
SCSS
$custom: #5d4aba;
$custom-light: #927dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4aba",
  "rgb": {
    "r": 93,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 250.179,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4913,
    "c": 0.16904,
    "h": 286.2
  },
  "luminance": 0.1077
}

Semantic roles & 50–950 ramp

primary
#5D4ABA
secondary
#C0C997
accent
#D553BF
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A14
muted
#7E7C82

Preview Lab

Preview with #5D4ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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