#5A2AB1#5A2AB1

#5A2AB1 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.197 H 292.4°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#5A2AB1
RGBrgb(90, 42, 177)
HSLhsl(261, 62%, 43%)
HSVhsv(261, 76%, 69%)
CMYKcmyk(49.2%, 76.3%, 0%, 30.6%)
CIE-LABlab(31.81, 51.37, -63.44)
CIE-LCHlch(31.81, 81.63, 309.00°)
OKLaboklab(43.54% 0.075 -0.1821)
OKLCHoklch(43.54% 0.197 292.4)
XYZxyz(12.9780, 7.0034, 42.2544)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AB1 #81B12A
analogous
#2A3EB1 #5A2AB1 #9D2AB1
triadic
#5A2AB1 #B15A2A #2AB15A
tetradic
#5A2AB1 #B12A3E #81B12A #2AB19D
square
#5A2AB1 #B12A3E #81B12A #2AB19D
split-complementary
#5A2AB1 #B19D2A #3EB12A
monochromatic
#28134E #411E80 #5A2AB1 #7845D3 #9C77DF

Accessibility & contrast

On white

8.75
#5A2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5A2AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AB1
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AB1#FFFFFF#000000##FFFFFF
##5A2AB11.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0048AE
Tritanopia (blue-blind)
#3E4F6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a2ab1;
/* rgb */ color: rgb(90, 42, 177);
/* oklch */ color: oklch(43.5% 0.197 292.4);
Tailwind
colors: {
  custom: {
    50: '#9169c9',
    500: '#5a2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ab1;
$custom-light: #9169c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ab1",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 261.333,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43535,
    "c": 0.19693,
    "h": 292.4
  },
  "luminance": 0.07004
}

Semantic roles & 50–950 ramp

primary
#5A2AB1
secondary
#A8C670
accent
#E543AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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