#5A3EBE#5A3EBE

#5A3EBE is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.3% C 0.190 H 286.8°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5A3EBE
RGBrgb(90, 62, 190)
HSLhsl(253, 51%, 49%)
HSVhsv(253, 67%, 75%)
CMYKcmyk(52.6%, 67.4%, 0%, 25.5%)
CIE-LABlab(36.62, 44.76, -63.27)
CIE-LCHlch(36.62, 77.50, 305.28°)
OKLaboklab(47.3% 0.0547 -0.1817)
OKLCHoklch(47.3% 0.19 286.8)
XYZxyz(15.2306, 9.3358, 49.7047)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3EBE #A2BE3E
analogous
#3E62BE #5A3EBE #9A3EBE
triadic
#5A3EBE #BE5A3E #3EBE5A
tetradic
#5A3EBE #BE3E62 #A2BE3E #3EBE9A
square
#5A3EBE #BE3E62 #A2BE3E #3EBE9A
split-complementary
#5A3EBE #BE9A3E #62BE3E
monochromatic
#2E2062 #442F90 #5A3EBE #806BCF #A899DE

Accessibility & contrast

On white

7.32
#5A3EBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5A3EBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3EBE
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3EBE#FFFFFF#000000##FFFFFF
##5A3EBE1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C2
Deuteranopia (green-blind)
#0053BB
Tritanopia (blue-blind)
#335E79
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3ebe;
/* rgb */ color: rgb(90, 62, 190);
/* oklch */ color: oklch(47.3% 0.190 286.8);
Tailwind
colors: {
  custom: {
    50: '#9275d3',
    500: '#5a3ebe',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ebe;
$custom-light: #9275d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ebe",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 190
  },
  "hsl": {
    "h": 253.125,
    "s": 50.794,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47296,
    "c": 0.18974,
    "h": 286.8
  },
  "luminance": 0.09337
}

Semantic roles & 50–950 ramp

primary
#5A3EBE
secondary
#BDC98E
accent
#DA4EBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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