#5A3BD3#5A3BD3

#5A3BD3 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.7% C 0.218 H 284.2°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#5A3BD3
RGBrgb(90, 59, 211)
HSLhsl(252, 63%, 53%)
HSVhsv(252, 72%, 83%)
CMYKcmyk(57.3%, 72%, 0%, 17.3%)
CIE-LABlab(37.85, 52.53, -73.48)
CIE-LCHlch(37.85, 90.33, 305.56°)
OKLaboklab(48.73% 0.0534 -0.2116)
OKLCHoklch(48.73% 0.218 284.2)
XYZxyz(17.5347, 10.0036, 62.6223)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BD3 #B4D33B
analogous
#3B68D3 #5A3BD3 #A63BD3
triadic
#5A3BD3 #D35A3B #3BD35A
tetradic
#5A3BD3 #D33B68 #B4D33B #3BD3A6
square
#5A3BD3 #D33B68 #B4D33B #3BD3A6
split-complementary
#5A3BD3 #D3A63B #68D33B
monochromatic
#2E1B79 #4126AB #5A3BD3 #846DDE #AE9FE9

Accessibility & contrast

On white

7.00
#5A3BD3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5A3BD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3BD3
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BD3#FFFFFF#000000##FFFFFF
##5A3BD31.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED7
Deuteranopia (green-blind)
#0054D0
Tritanopia (blue-blind)
#176583
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a3bd3;
/* rgb */ color: rgb(90, 59, 211);
/* oklch */ color: oklch(48.7% 0.218 284.2);
Tailwind
colors: {
  custom: {
    50: '#9574e2',
    500: '#5a3bd3',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bd3;
$custom-light: #9574e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bd3",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 211
  },
  "hsl": {
    "h": 252.237,
    "s": 63.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48727,
    "c": 0.21825,
    "h": 284.2
  },
  "luminance": 0.10005
}

Semantic roles & 50–950 ramp

primary
#5A3BD3
secondary
#C8D694
accent
#E641C5
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0815
muted
#7E7B84

Preview Lab

Preview with #5A3BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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