#5A329B#5A329B

#5A329B is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.162 H 296.3°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5A329B
RGBrgb(90, 50, 155)
HSLhsl(263, 51%, 40%)
HSVhsv(263, 68%, 61%)
CMYKcmyk(41.9%, 67.7%, 0%, 39.2%)
CIE-LABlab(31.40, 41.36, -50.87)
CIE-LCHlch(31.40, 65.56, 309.11°)
OKLaboklab(42.66% 0.0719 -0.1452)
OKLCHoklch(42.66% 0.162 296.3)
XYZxyz(11.2719, 6.8212, 31.7267)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A329B #739B32
analogous
#323E9B #5A329B #8E329B
triadic
#5A329B #9B5A32 #329B5A
tetradic
#5A329B #9B323E #739B32 #329B8E
square
#5A329B #9B323E #739B32 #329B8E
split-complementary
#5A329B #9B8E32 #3E9B32
monochromatic
#24143E #3F236D #5A329B #7647C4 #9975D2

Accessibility & contrast

On white

8.88
#5A329B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A329B
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A329B#FFFFFF#000000##FFFFFF
##5A329B1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004899
Tritanopia (blue-blind)
#494B62
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a329b;
/* rgb */ color: rgb(90, 50, 155);
/* oklch */ color: oklch(42.7% 0.162 296.3);
Tailwind
colors: {
  custom: {
    50: '#8e6db9',
    500: '#5a329b',
    950: '#000000',
  },
}
SCSS
$custom: #5a329b;
$custom-light: #8e6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a329b",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 155
  },
  "hsl": {
    "h": 262.857,
    "s": 51.22,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42664,
    "c": 0.16207,
    "h": 296.3
  },
  "luminance": 0.06821
}

Semantic roles & 50–950 ramp

primary
#5A329B
secondary
#9EBB6E
accent
#DB4DA5
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A329B

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

Preview Lab → · Contrast checker → · Palette generator →

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