#5A3DD5#5A3DD5

#5A3DD5 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.2% C 0.219 H 283.6°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5A3DD5
RGBrgb(90, 61, 213)
HSLhsl(251, 64%, 54%)
HSVhsv(251, 71%, 84%)
CMYKcmyk(57.7%, 71.4%, 0%, 16.5%)
CIE-LABlab(38.40, 52.07, -73.73)
CIE-LCHlch(38.40, 90.26, 305.23°)
OKLaboklab(49.17% 0.0515 -0.2123)
OKLCHoklch(49.17% 0.219 283.6)
XYZxyz(17.8917, 10.3141, 63.9859)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DD5 #B8D53D
analogous
#3D6CD5 #5A3DD5 #A63DD5
triadic
#5A3DD5 #D55A3D #3DD55A
tetradic
#5A3DD5 #D53D6C #B8D53D #3DD5A6
square
#5A3DD5 #D53D6C #B8D53D #3DD5A6
split-complementary
#5A3DD5 #D5A63D #6CD53D
monochromatic
#2E1B7D #4026AF #5A3DD5 #856FE0 #B0A2EB

Accessibility & contrast

On white

6.86
#5A3DD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5A3DD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3DD5
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DD5#FFFFFF#000000##FFFFFF
##5A3DD51.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD9
Deuteranopia (green-blind)
#0055D2
Tritanopia (blue-blind)
#126685
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a3dd5;
/* rgb */ color: rgb(90, 61, 213);
/* oklch */ color: oklch(49.2% 0.219 283.6);
Tailwind
colors: {
  custom: {
    50: '#9575e3',
    500: '#5a3dd5',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dd5;
$custom-light: #9575e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dd5",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 213
  },
  "hsl": {
    "h": 251.447,
    "s": 64.407,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49173,
    "c": 0.21851,
    "h": 283.6
  },
  "luminance": 0.10315
}

Semantic roles & 50–950 ramp

primary
#5A3DD5
secondary
#CBD796
accent
#E740C8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5A3DD5

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

Preview Lab → · Contrast checker → · Palette generator →

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