#5A3FD1#5A3FD1

#5A3FD1 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.1% C 0.212 H 283.9°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#5A3FD1
RGBrgb(90, 63, 209)
HSLhsl(251, 61%, 53%)
HSVhsv(251, 70%, 82%)
CMYKcmyk(56.9%, 69.9%, 0%, 18%)
CIE-LABlab(38.43, 49.83, -71.37)
CIE-LCHlch(38.43, 87.05, 304.92°)
OKLaboklab(49.09% 0.0507 -0.2055)
OKLCHoklch(49.09% 0.212 283.9)
XYZxyz(17.4991, 10.3310, 61.3812)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FD1 #B6D13F
analogous
#3F6DD1 #5A3FD1 #A33FD1
triadic
#5A3FD1 #D15A3F #3FD15A
tetradic
#5A3FD1 #D13F6D #B6D13F #3FD1A3
square
#5A3FD1 #D13F6D #B6D13F #3FD1A3
split-complementary
#5A3FD1 #D1A33F #6DD13F
monochromatic
#2E1D79 #4129AA #5A3FD1 #8470DD #AFA2E9

Accessibility & contrast

On white

6.85
#5A3FD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5A3FD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FD1
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FD1#FFFFFF#000000##FFFFFF
##5A3FD11.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD5
Deuteranopia (green-blind)
#0056CE
Tritanopia (blue-blind)
#1A6683
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a3fd1;
/* rgb */ color: rgb(90, 63, 209);
/* oklch */ color: oklch(49.1% 0.212 283.9);
Tailwind
colors: {
  custom: {
    50: '#9576e0',
    500: '#5a3fd1',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fd1;
$custom-light: #9576e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fd1",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 209
  },
  "hsl": {
    "h": 251.096,
    "s": 61.345,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49087,
    "c": 0.21163,
    "h": 283.9
  },
  "luminance": 0.10332
}

Semantic roles & 50–950 ramp

primary
#5A3FD1
secondary
#CAD597
accent
#E443C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A3FD1

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

Preview Lab → · Contrast checker → · Palette generator →

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