#5B3DAE#5B3DAE

#5B3DAE is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.9% C 0.171 H 290.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#5B3DAE
RGBrgb(91, 61, 174)
HSLhsl(256, 48%, 46%)
HSVhsv(256, 65%, 68%)
CMYKcmyk(47.7%, 64.9%, 0%, 31.8%)
CIE-LABlab(35.24, 40.81, -56.06)
CIE-LCHlch(35.24, 69.34, 306.05°)
OKLaboklab(45.92% 0.0592 -0.1605)
OKLCHoklch(45.92% 0.171 290.2)
XYZxyz(13.6209, 8.6171, 40.9818)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DAE #90AE3D
analogous
#3D57AE #5B3DAE #933DAE
triadic
#5B3DAE #AE5B3D #3DAE5B
tetradic
#5B3DAE #AE3D57 #90AE3D #3DAE93
square
#5B3DAE #AE3D57 #90AE3D #3DAE93
split-complementary
#5B3DAE #AE933D #57AE3D
monochromatic
#2C1D53 #432D81 #5B3DAE #7C61C8 #A18ED7

Accessibility & contrast

On white

7.71
#5B3DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5B3DAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3DAE
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DAE#FFFFFF#000000##FFFFFF
##5B3DAE1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B2
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#415870
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b3dae;
/* rgb */ color: rgb(91, 61, 174);
/* oklch */ color: oklch(45.9% 0.171 290.2);
Tailwind
colors: {
  custom: {
    50: '#9074c7',
    500: '#5b3dae',
    950: '#000000',
  },
}
SCSS
$custom: #5b3dae;
$custom-light: #9074c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3dae",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 174
  },
  "hsl": {
    "h": 255.929,
    "s": 48.085,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45921,
    "c": 0.17103,
    "h": 290.2
  },
  "luminance": 0.08618
}

Semantic roles & 50–950 ramp

primary
#5B3DAE
secondary
#B2C285
accent
#D850B4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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