#5A2EB7#5A2EB7

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

Color values

HEX#5A2EB7
RGBrgb(90, 46, 183)
HSLhsl(259, 60%, 45%)
HSVhsv(259, 75%, 72%)
CMYKcmyk(50.8%, 74.9%, 0%, 28.2%)
CIE-LABlab(33.02, 51.11, -65.03)
CIE-LCHlch(33.02, 82.72, 308.17°)
OKLaboklab(44.55% 0.0702 -0.1868)
OKLCHoklch(44.55% 0.2 290.6)
XYZxyz(13.7382, 7.5460, 45.5232)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EB7 #8BB72E
analogous
#2E47B7 #5A2EB7 #9E2EB7
triadic
#5A2EB7 #B75A2E #2EB75A
tetradic
#5A2EB7 #B72E47 #8BB72E #2EB79E
square
#5A2EB7 #B72E47 #8BB72E #2EB79E
split-complementary
#5A2EB7 #B79E2E #47B72E
monochromatic
#2A1555 #422286 #5A2EB7 #7A4FD3 #9F80DF

Accessibility & contrast

On white

8.37
#5A2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5A2EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EB7
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EB7#FFFFFF#000000##FFFFFF
##5A2EB71.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#004BB4
Tritanopia (blue-blind)
#3A5370
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a2eb7;
/* rgb */ color: rgb(90, 46, 183);
/* oklch */ color: oklch(44.5% 0.200 290.6);
Tailwind
colors: {
  custom: {
    50: '#926bce',
    500: '#5a2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #5a2eb7;
$custom-light: #926bce;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2eb7",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 259.27,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44547,
    "c": 0.19954,
    "h": 290.6
  },
  "luminance": 0.07547
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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