#5A329A#5A329A

#5A329A is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.6% C 0.161 H 296.6°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5A329A
RGBrgb(90, 50, 154)
HSLhsl(263, 51%, 40%)
HSVhsv(263, 68%, 60%)
CMYKcmyk(41.6%, 67.5%, 0%, 39.6%)
CIE-LABlab(31.32, 41.09, -50.39)
CIE-LCHlch(31.32, 65.02, 309.19°)
OKLaboklab(42.58% 0.0721 -0.1438)
OKLCHoklch(42.58% 0.161 296.6)
XYZxyz(11.1883, 6.7877, 31.2863)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A329A #729A32
analogous
#323E9A #5A329A #8E329A
triadic
#5A329A #9A5A32 #329A5A
tetradic
#5A329A #9A323E #729A32 #329A8E
square
#5A329A #9A323E #729A32 #329A8E
split-complementary
#5A329A #9A8E32 #3E9A32
monochromatic
#24143E #3F236C #5A329A #7646C3 #9874D2

Accessibility & contrast

On white

8.91
#5A329A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5A329A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A329A
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A329A#FFFFFF#000000##FFFFFF
##5A329A1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#004898
Tritanopia (blue-blind)
#4A4A61
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a329a;
/* rgb */ color: rgb(90, 50, 154);
/* oklch */ color: oklch(42.6% 0.161 296.6);
Tailwind
colors: {
  custom: {
    50: '#8e6db9',
    500: '#5a329a',
    950: '#000000',
  },
}
SCSS
$custom: #5a329a;
$custom-light: #8e6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a329a",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 154
  },
  "hsl": {
    "h": 263.077,
    "s": 50.98,
    "l": 40
  },
  "oklch": {
    "l": 0.42584,
    "c": 0.16086,
    "h": 296.6
  },
  "luminance": 0.06788
}

Semantic roles & 50–950 ramp

primary
#5A329A
secondary
#9DBA6E
accent
#DA4DA4
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A329A

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

Preview Lab → · Contrast checker → · Palette generator →

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