#5A2EB9#5A2EB9

#5A2EB9 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.7% C 0.202 H 290.2°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#5A2EB9
RGBrgb(90, 46, 185)
HSLhsl(259, 60%, 45%)
HSVhsv(259, 75%, 73%)
CMYKcmyk(51.4%, 75.1%, 0%, 27.5%)
CIE-LABlab(33.20, 51.66, -65.92)
CIE-LCHlch(33.20, 83.75, 308.09°)
OKLaboklab(44.73% 0.0696 -0.1894)
OKLCHoklch(44.73% 0.202 290.2)
XYZxyz(13.9479, 7.6298, 46.6273)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EB9 #8DB92E
analogous
#2E47B9 #5A2EB9 #9F2EB9
triadic
#5A2EB9 #B95A2E #2EB95A
tetradic
#5A2EB9 #B92E47 #8DB92E #2EB99F
square
#5A2EB9 #B92E47 #8DB92E #2EB99F
split-complementary
#5A2EB9 #B99F2E #47B92E
monochromatic
#2A1657 #422288 #5A2EB9 #7A51D4 #9F82E0

Accessibility & contrast

On white

8.31
#5A2EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5A2EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EB9
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EB9#FFFFFF#000000##FFFFFF
##5A2EB91.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#004BB6
Tritanopia (blue-blind)
#385472
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a2eb9;
/* rgb */ color: rgb(90, 46, 185);
/* oklch */ color: oklch(44.7% 0.202 290.2);
Tailwind
colors: {
  custom: {
    50: '#926ccf',
    500: '#5a2eb9',
    950: '#000000',
  },
}
SCSS
$custom: #5a2eb9;
$custom-light: #926ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2eb9",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 258.993,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44729,
    "c": 0.2018,
    "h": 290.2
  },
  "luminance": 0.0763
}

Semantic roles & 50–950 ramp

primary
#5A2EB9
secondary
#B0C97A
accent
#E344B1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A2EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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