#5A3FD5#5A3FD5

#5A3FD5 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.4% C 0.216 H 283.4°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#5A3FD5
RGBrgb(90, 63, 213)
HSLhsl(251, 64%, 54%)
HSVhsv(251, 70%, 84%)
CMYKcmyk(57.7%, 70.4%, 0%, 16.5%)
CIE-LABlab(38.78, 51.01, -73.11)
CIE-LCHlch(38.78, 89.14, 304.91°)
OKLaboklab(49.44% 0.05 -0.2105)
OKLCHoklch(49.44% 0.216 283.4)
XYZxyz(18.0005, 10.5316, 64.0222)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FD5 #BAD53F
analogous
#3F6FD5 #5A3FD5 #A53FD5
triadic
#5A3FD5 #D55A3F #3FD55A
tetradic
#5A3FD5 #D53F6F #BAD53F #3FD5A5
square
#5A3FD5 #D53F6F #BAD53F #3FD5A5
split-complementary
#5A3FD5 #D5A53F #6FD53F
monochromatic
#2D1C7E #3F27B0 #5A3FD5 #8571E0 #B0A3EB

Accessibility & contrast

On white

6.76
#5A3FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5A3FD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FD5
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FD5#FFFFFF#000000##FFFFFF
##5A3FD51.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D9
Deuteranopia (green-blind)
#0056D2
Tritanopia (blue-blind)
#116786
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a3fd5;
/* rgb */ color: rgb(90, 63, 213);
/* oklch */ color: oklch(49.4% 0.216 283.4);
Tailwind
colors: {
  custom: {
    50: '#9577e3',
    500: '#5a3fd5',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fd5;
$custom-light: #9577e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fd5",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 213
  },
  "hsl": {
    "h": 250.8,
    "s": 64.103,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49443,
    "c": 0.21638,
    "h": 283.4
  },
  "luminance": 0.10533
}

Semantic roles & 50–950 ramp

primary
#5A3FD5
secondary
#CCD898
accent
#E741C9
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5A3FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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