#5A2EBA#5A2EBA

#5A2EBA is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.8% C 0.203 H 290.0°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#5A2EBA
RGBrgb(90, 46, 186)
HSLhsl(259, 60%, 45%)
HSVhsv(259, 75%, 73%)
CMYKcmyk(51.6%, 75.3%, 0%, 27.1%)
CIE-LABlab(33.29, 51.94, -66.36)
CIE-LCHlch(33.29, 84.27, 308.05°)
OKLaboklab(44.82% 0.0694 -0.1907)
OKLCHoklch(44.82% 0.203 290)
XYZxyz(14.0538, 7.6722, 47.1852)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EBA #8EBA2E
analogous
#2E48BA #5A2EBA #A02EBA
triadic
#5A2EBA #BA5A2E #2EBA5A
tetradic
#5A2EBA #BA2E48 #8EBA2E #2EBAA0
square
#5A2EBA #BA2E48 #8EBA2E #2EBAA0
split-complementary
#5A2EBA #BAA02E #48BA2E
monochromatic
#2B1658 #422289 #5A2EBA #7A51D4 #A082E0

Accessibility & contrast

On white

8.29
#5A2EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2EBA
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EBA#FFFFFF#000000##FFFFFF
##5A2EBA1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BE
Deuteranopia (green-blind)
#004BB7
Tritanopia (blue-blind)
#375572
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a2eba;
/* rgb */ color: rgb(90, 46, 186);
/* oklch */ color: oklch(44.8% 0.203 290.0);
Tailwind
colors: {
  custom: {
    50: '#926cd0',
    500: '#5a2eba',
    950: '#000000',
  },
}
SCSS
$custom: #5a2eba;
$custom-light: #926cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2eba",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 258.857,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44821,
    "c": 0.20293,
    "h": 290
  },
  "luminance": 0.07673
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A2EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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