#5A29AB#5A29AB

#5A29AB is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.191 H 293.9°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5A29AB
RGBrgb(90, 41, 171)
HSLhsl(263, 61%, 42%)
HSVhsv(263, 76%, 67%)
CMYKcmyk(47.4%, 76%, 0%, 32.9%)
CIE-LABlab(31.11, 50.23, -61.00)
CIE-LCHlch(31.11, 79.02, 309.47°)
OKLaboklab(42.88% 0.0774 -0.1749)
OKLCHoklch(42.88% 0.191 293.9)
XYZxyz(12.3581, 6.6994, 39.1622)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A29AB #7AAB29
analogous
#2939AB #5A29AB #9B29AB
triadic
#5A29AB #AB5A29 #29AB5A
tetradic
#5A29AB #AB2939 #7AAB29 #29AB9B
square
#5A29AB #AB2939 #7AAB29 #29AB9B
split-complementary
#5A29AB #AB9B29 #39AB29
monochromatic
#261148 #401D7A #5A29AB #7740D1 #9A71DD

Accessibility & contrast

On white

8.97
#5A29AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5A29AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A29AB
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A29AB#FFFFFF#000000##FFFFFF
##5A29AB1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#424C68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a29ab;
/* rgb */ color: rgb(90, 41, 171);
/* oklch */ color: oklch(42.9% 0.191 293.9);
Tailwind
colors: {
  custom: {
    50: '#9168c5',
    500: '#5a29ab',
    950: '#000000',
  },
}
SCSS
$custom: #5a29ab;
$custom-light: #9168c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a29ab",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 171
  },
  "hsl": {
    "h": 262.615,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42877,
    "c": 0.1913,
    "h": 293.9
  },
  "luminance": 0.067
}

Semantic roles & 50–950 ramp

primary
#5A29AB
secondary
#A3C46C
accent
#E443A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A29AB

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

Preview Lab → · Contrast checker → · Palette generator →

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