#5A3FD9#5A3FD9

#5A3FD9 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.8% C 0.221 H 282.9°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#5A3FD9
RGBrgb(90, 63, 217)
HSLhsl(251, 67%, 55%)
HSVhsv(251, 71%, 85%)
CMYKcmyk(58.5%, 71%, 0%, 14.9%)
CIE-LABlab(39.13, 52.19, -74.82)
CIE-LCHlch(39.13, 91.23, 304.90°)
OKLaboklab(49.8% 0.0492 -0.2156)
OKLCHoklch(49.8% 0.221 282.9)
XYZxyz(18.5145, 10.7372, 66.7291)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FD9 #BED93F
analogous
#3F71D9 #5A3FD9 #A73FD9
triadic
#5A3FD9 #D95A3F #3FD95A
tetradic
#5A3FD9 #D93F71 #BED93F #3FD9A7
square
#5A3FD9 #D93F71 #BED93F #3FD9A7
split-complementary
#5A3FD9 #D9A73F #71D93F
monochromatic
#2D1A84 #3E24B7 #5A3FD9 #8672E3 #B2A5ED

Accessibility & contrast

On white

6.67
#5A3FD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5A3FD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FD9
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FD9#FFFFFF#000000##FFFFFF
##5A3FD91.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DE
Deuteranopia (green-blind)
#0057D6
Tritanopia (blue-blind)
#026988
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a3fd9;
/* rgb */ color: rgb(90, 63, 217);
/* oklch */ color: oklch(49.8% 0.221 282.9);
Tailwind
colors: {
  custom: {
    50: '#9677e6',
    500: '#5a3fd9',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fd9;
$custom-light: #9677e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fd9",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 217
  },
  "hsl": {
    "h": 250.519,
    "s": 66.957,
    "l": 54.902
  },
  "oklch": {
    "l": 0.49804,
    "c": 0.22111,
    "h": 282.9
  },
  "luminance": 0.10738
}

Semantic roles & 50–950 ramp

primary
#5A3FD9
secondary
#CFDA9A
accent
#EA3ECC
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A3FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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