#5A2AB3#5A2AB3

#5A2AB3 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.199 H 291.9°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5A2AB3
RGBrgb(90, 42, 179)
HSLhsl(261, 62%, 43%)
HSVhsv(261, 77%, 70%)
CMYKcmyk(49.7%, 76.5%, 0%, 29.8%)
CIE-LABlab(32.00, 51.91, -64.34)
CIE-LCHlch(32.00, 82.66, 308.90°)
OKLaboklab(43.72% 0.0744 -0.1847)
OKLCHoklch(43.72% 0.199 291.9)
XYZxyz(13.1788, 7.0838, 43.3120)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AB3 #83B32A
analogous
#2A3EB3 #5A2AB3 #9E2AB3
triadic
#5A2AB3 #B35A2A #2AB35A
tetradic
#5A2AB3 #B32A3E #83B32A #2AB39E
square
#5A2AB3 #B32A3E #83B32A #2AB39E
split-complementary
#5A2AB3 #B39E2A #3EB32A
monochromatic
#281350 #411E81 #5A2AB3 #7846D4 #9C78DF

Accessibility & contrast

On white

8.69
#5A2AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5A2AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AB3
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AB3#FFFFFF#000000##FFFFFF
##5A2AB31.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#3D506D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a2ab3;
/* rgb */ color: rgb(90, 42, 179);
/* oklch */ color: oklch(43.7% 0.199 291.9);
Tailwind
colors: {
  custom: {
    50: '#9269cb',
    500: '#5a2ab3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ab3;
$custom-light: #9269cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ab3",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 261.022,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43719,
    "c": 0.19915,
    "h": 291.9
  },
  "luminance": 0.07084
}

Semantic roles & 50–950 ramp

primary
#5A2AB3
secondary
#A9C772
accent
#E543AC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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