#5A2AB0#5A2AB0

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

Color values

HEX#5A2AB0
RGBrgb(90, 42, 176)
HSLhsl(261, 61%, 43%)
HSVhsv(261, 76%, 69%)
CMYKcmyk(48.9%, 76.1%, 0%, 31%)
CIE-LABlab(31.72, 51.10, -62.99)
CIE-LCHlch(31.72, 81.12, 309.05°)
OKLaboklab(43.44% 0.0752 -0.1808)
OKLCHoklch(43.44% 0.196 292.6)
XYZxyz(12.8787, 6.9637, 41.7314)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AB0 #80B02A
analogous
#2A3DB0 #5A2AB0 #9D2AB0
triadic
#5A2AB0 #B05A2A #2AB05A
tetradic
#5A2AB0 #B02A3D #80B02A #2AB09D
square
#5A2AB0 #B02A3D #80B02A #2AB09D
split-complementary
#5A2AB0 #B09D2A #3DB02A
monochromatic
#27124D #411E7F #5A2AB0 #7745D3 #9B76DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A2AB0#FFFFFF#000000##FFFFFF
##5A2AB01.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)
#004CB4
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#3F4F6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a2ab0;
/* rgb */ color: rgb(90, 42, 176);
/* oklch */ color: oklch(43.4% 0.196 292.6);
Tailwind
colors: {
  custom: {
    50: '#9169c9',
    500: '#5a2ab0',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ab0;
$custom-light: #9169c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ab0",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 176
  },
  "hsl": {
    "h": 261.493,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43444,
    "c": 0.19582,
    "h": 292.6
  },
  "luminance": 0.06964
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A2AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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