#5A3EBD#5A3EBD

#5A3EBD is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.2% C 0.189 H 286.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5A3EBD
RGBrgb(90, 62, 189)
HSLhsl(253, 51%, 49%)
HSVhsv(253, 67%, 74%)
CMYKcmyk(52.4%, 67.2%, 0%, 25.9%)
CIE-LABlab(36.54, 44.46, -62.81)
CIE-LCHlch(36.54, 76.96, 305.29°)
OKLaboklab(47.21% 0.0549 -0.1803)
OKLCHoklch(47.21% 0.189 286.9)
XYZxyz(15.1217, 9.2923, 49.1310)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3EBD #A1BD3E
analogous
#3E62BD #5A3EBD #9A3EBD
triadic
#5A3EBD #BD5A3E #3EBD5A
tetradic
#5A3EBD #BD3E62 #A1BD3E #3EBD9A
square
#5A3EBD #BD3E62 #A1BD3E #3EBD9A
split-complementary
#5A3EBD #BD9A3E #62BD3E
monochromatic
#2E2061 #442F8F #5A3EBD #806ACE #A798DD

Accessibility & contrast

On white

7.35
#5A3EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5A3EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3EBD
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3EBD#FFFFFF#000000##FFFFFF
##5A3EBD1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#0052BA
Tritanopia (blue-blind)
#335E78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3ebd;
/* rgb */ color: rgb(90, 62, 189);
/* oklch */ color: oklch(47.2% 0.189 286.9);
Tailwind
colors: {
  custom: {
    50: '#9275d2',
    500: '#5a3ebd',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ebd;
$custom-light: #9275d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ebd",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 189
  },
  "hsl": {
    "h": 253.228,
    "s": 50.598,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47212,
    "c": 0.18851,
    "h": 286.9
  },
  "luminance": 0.09293
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A3EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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