#5A3FD2#5A3FD2

#5A3FD2 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.2% C 0.213 H 283.7°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5A3FD2
RGBrgb(90, 63, 210)
HSLhsl(251, 62%, 54%)
HSVhsv(251, 70%, 82%)
CMYKcmyk(57.1%, 70%, 0%, 17.6%)
CIE-LABlab(38.52, 50.13, -71.81)
CIE-LCHlch(38.52, 87.57, 304.92°)
OKLaboklab(49.18% 0.0505 -0.2067)
OKLCHoklch(49.18% 0.213 283.7)
XYZxyz(17.6232, 10.3807, 62.0353)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FD2 #B7D23F
analogous
#3F6DD2 #5A3FD2 #A33FD2
triadic
#5A3FD2 #D25A3F #3FD25A
tetradic
#5A3FD2 #D23F6D #B7D23F #3FD2A3
square
#5A3FD2 #D23F6D #B7D23F #3FD2A3
split-complementary
#5A3FD2 #D2A33F #6DD23F
monochromatic
#2E1D7A #4028AC #5A3FD2 #8571DE #AFA2E9

Accessibility & contrast

On white

6.83
#5A3FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5A3FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FD2
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FD2#FFFFFF#000000##FFFFFF
##5A3FD21.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD6
Deuteranopia (green-blind)
#0056CF
Tritanopia (blue-blind)
#186684
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a3fd2;
/* rgb */ color: rgb(90, 63, 210);
/* oklch */ color: oklch(49.2% 0.213 283.7);
Tailwind
colors: {
  custom: {
    50: '#9577e1',
    500: '#5a3fd2',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fd2;
$custom-light: #9577e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fd2",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 210
  },
  "hsl": {
    "h": 251.02,
    "s": 62.025,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49176,
    "c": 0.21282,
    "h": 283.7
  },
  "luminance": 0.10382
}

Semantic roles & 50–950 ramp

primary
#5A3FD2
secondary
#CAD697
accent
#E543C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A3FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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