#5A4AAA#5A4AAA

#5A4AAA is a mid, vivid violet. Relative luminance 0.100; OKLCH L 47.7% C 0.148 H 287.0°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5A4AAA
RGBrgb(90, 74, 170)
HSLhsl(250, 39%, 48%)
HSVhsv(250, 56%, 67%)
CMYKcmyk(47.1%, 56.5%, 0%, 33.3%)
CIE-LABlab(37.79, 31.68, -49.55)
CIE-LCHlch(37.79, 58.81, 302.59°)
OKLaboklab(47.68% 0.0433 -0.1413)
OKLCHoklch(47.68% 0.148 287)
XYZxyz(13.9188, 9.9729, 39.2140)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4AAA #9AAA4A
analogous
#4A6AAA #5A4AAA #8A4AAA
triadic
#5A4AAA #AA5A4A #4AAA5A
tetradic
#5A4AAA #AA4A6A #9AAA4A #4AAA8A
square
#5A4AAA #AA4A6A #9AAA4A #4AAA8A
split-complementary
#5A4AAA #AA8A4A #6AAA4A
monochromatic
#2D2555 #43377F #5A4AAA #7E70C1 #A49BD3

Accessibility & contrast

On white

7.01
#5A4AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5A4AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4AAA
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4AAA#FFFFFF#000000##FFFFFF
##5A4AAA1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105BAD
Deuteranopia (green-blind)
#0F56A8
Tritanopia (blue-blind)
#405F73
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a4aaa;
/* rgb */ color: rgb(90, 74, 170);
/* oklch */ color: oklch(47.7% 0.148 287.0);
Tailwind
colors: {
  custom: {
    50: '#8e7dc4',
    500: '#5a4aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5a4aaa;
$custom-light: #8e7dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4aaa",
  "rgb": {
    "r": 90,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 250,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47679,
    "c": 0.14782,
    "h": 287
  },
  "luminance": 0.09973
}

Semantic roles & 50–950 ramp

primary
#5A4AAA
secondary
#B8C090
accent
#CF59BB
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5A4AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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