#5A2AB8#5A2AB8

#5A2AB8 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.2% C 0.205 H 290.9°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#5A2AB8
RGBrgb(90, 42, 184)
HSLhsl(260, 63%, 44%)
HSVhsv(260, 77%, 72%)
CMYKcmyk(51.1%, 77.2%, 0%, 27.8%)
CIE-LABlab(32.46, 53.25, -66.55)
CIE-LCHlch(32.46, 85.23, 308.67°)
OKLaboklab(44.18% 0.073 -0.1912)
OKLCHoklch(44.18% 0.205 290.9)
XYZxyz(13.6937, 7.2897, 46.0236)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AB8 #88B82A
analogous
#2A41B8 #5A2AB8 #A12AB8
triadic
#5A2AB8 #B85A2A #2AB85A
tetradic
#5A2AB8 #B82A41 #88B82A #2AB8A1
square
#5A2AB8 #B82A41 #88B82A #2AB8A1
split-complementary
#5A2AB8 #B8A12A #41B82A
monochromatic
#291354 #421F86 #5A2AB8 #794AD6 #9E7BE1

Accessibility & contrast

On white

8.54
#5A2AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5A2AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AB8
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AB8#FFFFFF#000000##FFFFFF
##5A2AB81.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0049B5
Tritanopia (blue-blind)
#395270
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2ab8;
/* rgb */ color: rgb(90, 42, 184);
/* oklch */ color: oklch(44.2% 0.205 290.9);
Tailwind
colors: {
  custom: {
    50: '#9269ce',
    500: '#5a2ab8',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ab8;
$custom-light: #9269ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ab8",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 260.282,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44181,
    "c": 0.20467,
    "h": 290.9
  },
  "luminance": 0.0729
}

Semantic roles & 50–950 ramp

primary
#5A2AB8
secondary
#ADC975
accent
#E642AE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A2AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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