#5A3DB9#5A3DB9

#5A3DB9 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.7% C 0.185 H 287.8°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#5A3DB9
RGBrgb(90, 61, 185)
HSLhsl(254, 50%, 48%)
HSVhsv(254, 67%, 73%)
CMYKcmyk(51.4%, 67%, 0%, 27.5%)
CIE-LABlab(36.01, 43.84, -61.33)
CIE-LCHlch(36.01, 75.38, 305.56°)
OKLaboklab(46.73% 0.0564 -0.176)
OKLCHoklch(46.73% 0.185 287.8)
XYZxyz(14.6396, 9.0132, 46.8579)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DB9 #9CB93D
analogous
#3D5EB9 #5A3DB9 #983DB9
triadic
#5A3DB9 #B95A3D #3DB95A
tetradic
#5A3DB9 #B93D5E #9CB93D #3DB998
square
#5A3DB9 #B93D5E #9CB93D #3DB998
split-complementary
#5A3DB9 #B9983D #5EB93D
monochromatic
#2D1F5D #442E8B #5A3DB9 #7E66CD #A595DC

Accessibility & contrast

On white

7.49
#5A3DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5A3DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DB9
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DB9#FFFFFF#000000##FFFFFF
##5A3DB91.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BD
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#375C76
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a3db9;
/* rgb */ color: rgb(90, 61, 185);
/* oklch */ color: oklch(46.7% 0.185 287.8);
Tailwind
colors: {
  custom: {
    50: '#9174cf',
    500: '#5a3db9',
    950: '#000000',
  },
}
SCSS
$custom: #5a3db9;
$custom-light: #9174cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3db9",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 185
  },
  "hsl": {
    "h": 254.032,
    "s": 50.407,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46728,
    "c": 0.18479,
    "h": 287.8
  },
  "luminance": 0.09014
}

Semantic roles & 50–950 ramp

primary
#5A3DB9
secondary
#B9C78B
accent
#DA4EB9
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A3DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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