#5A2EB3#5A2EB3

#5A2EB3 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.195 H 291.4°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#5A2EB3
RGBrgb(90, 46, 179)
HSLhsl(260, 59%, 44%)
HSVhsv(260, 74%, 70%)
CMYKcmyk(49.7%, 74.3%, 0%, 29.8%)
CIE-LABlab(32.66, 50.02, -63.25)
CIE-LCHlch(32.66, 80.64, 308.34°)
OKLaboklab(44.19% 0.0712 -0.1816)
OKLCHoklch(44.19% 0.195 291.4)
XYZxyz(13.3278, 7.3818, 43.3617)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EB3 #87B32E
analogous
#2E44B3 #5A2EB3 #9D2EB3
triadic
#5A2EB3 #B35A2E #2EB35A
tetradic
#5A2EB3 #B32E44 #87B32E #2EB39D
square
#5A2EB3 #B32E44 #87B32E #2EB39D
split-complementary
#5A2EB3 #B39D2E #44B32E
monochromatic
#291552 #422182 #5A2EB3 #794DD1 #9D7EDE

Accessibility & contrast

On white

8.48
#5A2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5A2EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EB3
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EB3#FFFFFF#000000##FFFFFF
##5A2EB31.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#3C526E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a2eb3;
/* rgb */ color: rgb(90, 46, 179);
/* oklch */ color: oklch(44.2% 0.195 291.4);
Tailwind
colors: {
  custom: {
    50: '#916bcb',
    500: '#5a2eb3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2eb3;
$custom-light: #916bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2eb3",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 259.85,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44185,
    "c": 0.195,
    "h": 291.4
  },
  "luminance": 0.07382
}

Semantic roles & 50–950 ramp

primary
#5A2EB3
secondary
#ACC676
accent
#E246AE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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