#5A2AAB#5A2AAB

#5A2AAB is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.190 H 293.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5A2AAB
RGBrgb(90, 42, 171)
HSLhsl(262, 61%, 42%)
HSVhsv(262, 75%, 67%)
CMYKcmyk(47.4%, 75.4%, 0%, 32.9%)
CIE-LABlab(31.28, 49.77, -60.74)
CIE-LCHlch(31.28, 78.52, 309.33°)
OKLaboklab(42.99% 0.0766 -0.1742)
OKLCHoklch(42.99% 0.19 293.7)
XYZxyz(12.3931, 6.7695, 39.1738)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AAB #7BAB2A
analogous
#2A3AAB #5A2AAB #9B2AAB
triadic
#5A2AAB #AB5A2A #2AAB5A
tetradic
#5A2AAB #AB2A3A #7BAB2A #2AAB9B
square
#5A2AAB #AB2A3A #7BAB2A #2AAB9B
split-complementary
#5A2AAB #AB9B2A #3AAB2A
monochromatic
#261249 #401E7A #5A2AAB #7742D1 #9A73DD

Accessibility & contrast

On white

8.92
#5A2AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5A2AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AAB
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AAB#FFFFFF#000000##FFFFFF
##5A2AAB1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#424D69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a2aab;
/* rgb */ color: rgb(90, 42, 171);
/* oklch */ color: oklch(43.0% 0.190 293.7);
Tailwind
colors: {
  custom: {
    50: '#9169c5',
    500: '#5a2aab',
    950: '#000000',
  },
}
SCSS
$custom: #5a2aab;
$custom-light: #9169c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2aab",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 262.326,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42992,
    "c": 0.19024,
    "h": 293.7
  },
  "luminance": 0.0677
}

Semantic roles & 50–950 ramp

primary
#5A2AAB
secondary
#A4C46D
accent
#E444A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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