#5A2BAE#5A2BAE

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

Color values

HEX#5A2BAE
RGBrgb(90, 43, 174)
HSLhsl(262, 60%, 43%)
HSVhsv(262, 75%, 68%)
CMYKcmyk(48.3%, 75.3%, 0%, 31.8%)
CIE-LABlab(31.71, 50.10, -61.82)
CIE-LCHlch(31.71, 79.57, 309.02°)
OKLaboklab(43.38% 0.0749 -0.1774)
OKLCHoklch(43.38% 0.193 292.9)
XYZxyz(12.7182, 6.9570, 40.7089)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BAE #7FAE2B
analogous
#2B3DAE #5A2BAE #9C2BAE
triadic
#5A2BAE #AE5A2B #2BAE5A
tetradic
#5A2BAE #AE2B3D #7FAE2B #2BAE9C
square
#5A2BAE #AE2B3D #7FAE2B #2BAE9C
split-complementary
#5A2BAE #AE9C2B #3DAE2B
monochromatic
#27134C #411F7D #5A2BAE #7745D1 #9B76DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A2BAE#FFFFFF#000000##FFFFFF
##5A2BAE1.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)
#004CB2
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#404E6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a2bae;
/* rgb */ color: rgb(90, 43, 174);
/* oklch */ color: oklch(43.4% 0.193 292.9);
Tailwind
colors: {
  custom: {
    50: '#9169c7',
    500: '#5a2bae',
    950: '#000000',
  },
}
SCSS
$custom: #5a2bae;
$custom-light: #9169c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2bae",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 261.527,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43378,
    "c": 0.19254,
    "h": 292.9
  },
  "luminance": 0.06957
}

Semantic roles & 50–950 ramp

primary
#5A2BAE
secondary
#A6C570
accent
#E444AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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