#5A2EB6#5A2EB6

#5A2EB6 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.198 H 290.8°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#5A2EB6
RGBrgb(90, 46, 182)
HSLhsl(259, 60%, 45%)
HSVhsv(259, 75%, 71%)
CMYKcmyk(50.5%, 74.7%, 0%, 28.6%)
CIE-LABlab(32.93, 50.84, -64.59)
CIE-LCHlch(32.93, 82.20, 308.21°)
OKLaboklab(44.46% 0.0704 -0.1855)
OKLCHoklch(44.46% 0.198 290.8)
XYZxyz(13.6345, 7.5045, 44.9770)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EB6 #8AB62E
analogous
#2E46B6 #5A2EB6 #9E2EB6
triadic
#5A2EB6 #B65A2E #2EB65A
tetradic
#5A2EB6 #B62E46 #8AB62E #2EB69E
square
#5A2EB6 #B62E46 #8AB62E #2EB69E
split-complementary
#5A2EB6 #B69E2E #46B62E
monochromatic
#2A1554 #422285 #5A2EB6 #794FD2 #9E80DF

Accessibility & contrast

On white

8.40
#5A2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5A2EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EB6
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EB6#FFFFFF#000000##FFFFFF
##5A2EB61.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#3A5370
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a2eb6;
/* rgb */ color: rgb(90, 46, 182);
/* oklch */ color: oklch(44.5% 0.198 290.8);
Tailwind
colors: {
  custom: {
    50: '#926bcd',
    500: '#5a2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #5a2eb6;
$custom-light: #926bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2eb6",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 259.412,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44456,
    "c": 0.1984,
    "h": 290.8
  },
  "luminance": 0.07505
}

Semantic roles & 50–950 ramp

primary
#5A2EB6
secondary
#AEC878
accent
#E345B0
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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