#5D3EBA#5D3EBA

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

Color values

HEX#5D3EBA
RGBrgb(93, 62, 186)
HSLhsl(255, 50%, 49%)
HSVhsv(255, 67%, 73%)
CMYKcmyk(50%, 66.7%, 0%, 27.1%)
CIE-LABlab(36.59, 44.11, -60.96)
CIE-LCHlch(36.59, 75.25, 305.89°)
OKLaboklab(47.24% 0.0595 -0.1748)
OKLCHoklch(47.24% 0.185 288.8)
XYZxyz(15.0972, 9.3169, 47.4477)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3EBA #9BBA3E
analogous
#3E5DBA #5D3EBA #9B3EBA
triadic
#5D3EBA #BA5D3E #3EBA5D
tetradic
#5D3EBA #BA3E5D #9BBA3E #3EBA9B
square
#5D3EBA #BA3E5D #9BBA3E #3EBA9B
split-complementary
#5D3EBA #BA9B3E #5DBA3E
monochromatic
#2F1F5E #462F8C #5D3EBA #8168CD #A896DC

Accessibility & contrast

On white

7.33
#5D3EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D3EBA
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3EBA#FFFFFF#000000##FFFFFF
##5D3EBA1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#3D5D77
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5d3eba;
/* rgb */ color: rgb(93, 62, 186);
/* oklch */ color: oklch(47.2% 0.185 288.8);
Tailwind
colors: {
  custom: {
    50: '#9375d0',
    500: '#5d3eba',
    950: '#000000',
  },
}
SCSS
$custom: #5d3eba;
$custom-light: #9375d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3eba",
  "rgb": {
    "r": 93,
    "g": 62,
    "b": 186
  },
  "hsl": {
    "h": 255,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47239,
    "c": 0.18465,
    "h": 288.8
  },
  "luminance": 0.09318
}

Semantic roles & 50–950 ramp

primary
#5D3EBA
secondary
#B9C88C
accent
#DA4EB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D3EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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