#5D4AAA#5D4AAA

#5D4AAA is a mid, vivid violet. Relative luminance 0.101; OKLCH L 47.9% C 0.148 H 288.7°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5D4AAA
RGBrgb(93, 74, 170)
HSLhsl(252, 39%, 48%)
HSVhsv(252, 56%, 67%)
CMYKcmyk(45.3%, 56.5%, 0%, 33.3%)
CIE-LABlab(38.07, 32.36, -49.09)
CIE-LCHlch(38.07, 58.80, 303.39°)
OKLaboklab(47.95% 0.0473 -0.1399)
OKLCHoklch(47.95% 0.148 288.7)
XYZxyz(14.2166, 10.1265, 39.2280)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4AAA #97AA4A
analogous
#4A67AA #5D4AAA #8D4AAA
triadic
#5D4AAA #AA5D4A #4AAA5D
tetradic
#5D4AAA #AA4A67 #97AA4A #4AAA8D
square
#5D4AAA #AA4A67 #97AA4A #4AAA8D
split-complementary
#5D4AAA #AA8D4A #67AA4A
monochromatic
#2E2555 #46377F #5D4AAA #8070C1 #A69BD3

Accessibility & contrast

On white

6.94
#5D4AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5D4AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D4AAA
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4AAA#FFFFFF#000000##FFFFFF
##5D4AAA1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135CAD
Deuteranopia (green-blind)
#1557A8
Tritanopia (blue-blind)
#455F73
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5d4aaa;
/* rgb */ color: rgb(93, 74, 170);
/* oklch */ color: oklch(47.9% 0.148 288.7);
Tailwind
colors: {
  custom: {
    50: '#907dc4',
    500: '#5d4aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5d4aaa;
$custom-light: #907dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4aaa",
  "rgb": {
    "r": 93,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 251.875,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47949,
    "c": 0.14766,
    "h": 288.7
  },
  "luminance": 0.10127
}

Semantic roles & 50–950 ramp

primary
#5D4AAA
secondary
#B6C090
accent
#CF59B8
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5D4AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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