#5A329F#5A329F

#5A329F is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.0% C 0.167 H 295.3°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5A329F
RGBrgb(90, 50, 159)
HSLhsl(262, 52%, 41%)
HSVhsv(262, 69%, 62%)
CMYKcmyk(43.4%, 68.6%, 0%, 37.6%)
CIE-LABlab(31.71, 42.46, -52.79)
CIE-LCHlch(31.71, 67.75, 308.81°)
OKLaboklab(42.99% 0.0713 -0.1509)
OKLCHoklch(42.99% 0.167 295.3)
XYZxyz(11.6134, 6.9578, 33.5253)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A329F #779F32
analogous
#32419F #5A329F #90329F
triadic
#5A329F #9F5A32 #329F5A
tetradic
#5A329F #9F3241 #779F32 #329F90
square
#5A329F #9F3241 #779F32 #329F90
split-complementary
#5A329F #9F9032 #419F32
monochromatic
#251542 #402370 #5A329F #7649C6 #9977D4

Accessibility & contrast

On white

8.78
#5A329F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5A329F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A329F
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A329F#FFFFFF#000000##FFFFFF
##5A329F1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#484C64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a329f;
/* rgb */ color: rgb(90, 50, 159);
/* oklch */ color: oklch(43.0% 0.167 295.3);
Tailwind
colors: {
  custom: {
    50: '#8f6dbc',
    500: '#5a329f',
    950: '#000000',
  },
}
SCSS
$custom: #5a329f;
$custom-light: #8f6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a329f",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 159
  },
  "hsl": {
    "h": 262.018,
    "s": 52.153,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42988,
    "c": 0.1669,
    "h": 295.3
  },
  "luminance": 0.06958
}

Semantic roles & 50–950 ramp

primary
#5A329F
secondary
#A1BD70
accent
#DC4CA7
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A329F

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

Preview Lab → · Contrast checker → · Palette generator →

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