#5A3DB5#5A3DB5

#5A3DB5 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.4% C 0.180 H 288.5°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5A3DB5
RGBrgb(90, 61, 181)
HSLhsl(255, 50%, 47%)
HSVhsv(255, 66%, 71%)
CMYKcmyk(50.3%, 66.3%, 0%, 29%)
CIE-LABlab(35.69, 42.66, -59.49)
CIE-LCHlch(35.69, 73.21, 305.65°)
OKLaboklab(46.4% 0.0569 -0.1706)
OKLCHoklch(46.4% 0.18 288.5)
XYZxyz(14.2233, 8.8467, 44.6653)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DB5 #98B53D
analogous
#3D5CB5 #5A3DB5 #963DB5
triadic
#5A3DB5 #B55A3D #3DB55A
tetradic
#5A3DB5 #B53D5C #98B53D #3DB596
square
#5A3DB5 #B53D5C #98B53D #3DB596
split-complementary
#5A3DB5 #B5963D #5CB53D
monochromatic
#2C1E59 #432E87 #5A3DB5 #7D64CB #A492DA

Accessibility & contrast

On white

7.58
#5A3DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5A3DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DB5
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DB5#FFFFFF#000000##FFFFFF
##5A3DB51.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#3A5B74
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a3db5;
/* rgb */ color: rgb(90, 61, 181);
/* oklch */ color: oklch(46.4% 0.180 288.5);
Tailwind
colors: {
  custom: {
    50: '#9174cc',
    500: '#5a3db5',
    950: '#000000',
  },
}
SCSS
$custom: #5a3db5;
$custom-light: #9174cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3db5",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 181
  },
  "hsl": {
    "h": 254.5,
    "s": 49.587,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46396,
    "c": 0.17983,
    "h": 288.5
  },
  "luminance": 0.08847
}

Semantic roles & 50–950 ramp

primary
#5A3DB5
secondary
#B7C588
accent
#D94FB8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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