#5A2EAD#5A2EAD

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

Color values

HEX#5A2EAD
RGBrgb(90, 46, 173)
HSLhsl(261, 58%, 43%)
HSVhsv(261, 73%, 68%)
CMYKcmyk(48%, 73.4%, 0%, 32.2%)
CIE-LABlab(32.13, 48.38, -60.53)
CIE-LCHlch(32.13, 77.49, 308.63°)
OKLaboklab(43.65% 0.0726 -0.1736)
OKLCHoklch(43.65% 0.188 292.7)
XYZxyz(12.7342, 7.1443, 40.2351)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EAD #81AD2E
analogous
#2E42AD #5A2EAD #992EAD
triadic
#5A2EAD #AD5A2E #2EAD5A
tetradic
#5A2EAD #AD2E42 #81AD2E #2EAD99
square
#5A2EAD #AD2E42 #81AD2E #2EAD99
split-complementary
#5A2EAD #AD992E #42AD2E
monochromatic
#28144C #41217D #5A2EAD #7849CF #9C7ADC

Accessibility & contrast

On white

8.65
#5A2EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5A2EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EAD
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EAD#FFFFFF#000000##FFFFFF
##5A2EAD1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB1
Deuteranopia (green-blind)
#0049AB
Tritanopia (blue-blind)
#404F6B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2ead;
/* rgb */ color: rgb(90, 46, 173);
/* oklch */ color: oklch(43.7% 0.188 292.7);
Tailwind
colors: {
  custom: {
    50: '#916bc6',
    500: '#5a2ead',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ead;
$custom-light: #916bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ead",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 173
  },
  "hsl": {
    "h": 260.787,
    "s": 57.991,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43651,
    "c": 0.18815,
    "h": 292.7
  },
  "luminance": 0.07145
}

Semantic roles & 50–950 ramp

primary
#5A2EAD
secondary
#A8C473
accent
#E147AC
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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