#5A2EAB#5A2EAB

#5A2EAB is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.186 H 293.1°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#5A2EAB
RGBrgb(90, 46, 171)
HSLhsl(261, 58%, 43%)
HSVhsv(261, 73%, 67%)
CMYKcmyk(47.4%, 73.1%, 0%, 32.9%)
CIE-LABlab(31.96, 47.83, -59.62)
CIE-LCHlch(31.96, 76.43, 308.74°)
OKLaboklab(43.48% 0.073 -0.1709)
OKLCHoklch(43.48% 0.186 293.1)
XYZxyz(12.5421, 7.0675, 39.2235)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EAB #7FAB2E
analogous
#2E40AB #5A2EAB #992EAB
triadic
#5A2EAB #AB5A2E #2EAB5A
tetradic
#5A2EAB #AB2E40 #7FAB2E #2EAB99
square
#5A2EAB #AB2E40 #7FAB2E #2EAB99
split-complementary
#5A2EAB #AB992E #40AB2E
monochromatic
#27144B #41217B #5A2EAB #7748CE #9B79DB

Accessibility & contrast

On white

8.70
#5A2EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5A2EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EAB
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EAB#FFFFFF#000000##FFFFFF
##5A2EAB1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#414F6A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a2eab;
/* rgb */ color: rgb(90, 46, 171);
/* oklch */ color: oklch(43.5% 0.186 293.1);
Tailwind
colors: {
  custom: {
    50: '#906bc5',
    500: '#5a2eab',
    950: '#000000',
  },
}
SCSS
$custom: #5a2eab;
$custom-light: #906bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2eab",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 261.12,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43475,
    "c": 0.18586,
    "h": 293.1
  },
  "luminance": 0.07068
}

Semantic roles & 50–950 ramp

primary
#5A2EAB
secondary
#A6C372
accent
#E147AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A2EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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