#5A3FD8#5A3FD8

#5A3FD8 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.7% C 0.220 H 283.0°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5A3FD8
RGBrgb(90, 63, 216)
HSLhsl(251, 66%, 55%)
HSVhsv(251, 71%, 85%)
CMYKcmyk(58.3%, 70.8%, 0%, 15.3%)
CIE-LABlab(39.05, 51.90, -74.40)
CIE-LCHlch(39.05, 90.71, 304.90°)
OKLaboklab(49.71% 0.0494 -0.2143)
OKLCHoklch(49.71% 0.22 283)
XYZxyz(18.3848, 10.6853, 66.0461)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FD8 #BDD83F
analogous
#3F71D8 #5A3FD8 #A63FD8
triadic
#5A3FD8 #D85A3F #3FD85A
tetradic
#5A3FD8 #D83F71 #BDD83F #3FD8A6
square
#5A3FD8 #D83F71 #BDD83F #3FD8A6
split-complementary
#5A3FD8 #D8A63F #71D83F
monochromatic
#2D1A82 #3E25B5 #5A3FD8 #8672E2 #B1A5ED

Accessibility & contrast

On white

6.69
#5A3FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5A3FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FD8
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FD8#FFFFFF#000000##FFFFFF
##5A3FD81.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DD
Deuteranopia (green-blind)
#0057D5
Tritanopia (blue-blind)
#066887
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a3fd8;
/* rgb */ color: rgb(90, 63, 216);
/* oklch */ color: oklch(49.7% 0.220 283.0);
Tailwind
colors: {
  custom: {
    50: '#9677e5',
    500: '#5a3fd8',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fd8;
$custom-light: #9677e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fd8",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 216
  },
  "hsl": {
    "h": 250.588,
    "s": 66.234,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49713,
    "c": 0.21993,
    "h": 283
  },
  "luminance": 0.10687
}

Semantic roles & 50–950 ramp

primary
#5A3FD8
secondary
#CEDA99
accent
#E93FCB
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5A3FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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