#5A3FD4#5A3FD4

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

Color values

HEX#5A3FD4
RGBrgb(90, 63, 212)
HSLhsl(251, 63%, 54%)
HSVhsv(251, 70%, 83%)
CMYKcmyk(57.5%, 70.3%, 0%, 16.9%)
CIE-LABlab(38.69, 50.72, -72.67)
CIE-LCHlch(38.69, 88.62, 304.91°)
OKLaboklab(49.35% 0.0502 -0.2093)
OKLCHoklch(49.35% 0.215 283.5)
XYZxyz(17.8740, 10.4810, 63.3558)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FD4 #B9D43F
analogous
#3F6FD4 #5A3FD4 #A43FD4
triadic
#5A3FD4 #D45A3F #3FD45A
tetradic
#5A3FD4 #D43F6F #B9D43F #3FD4A4
square
#5A3FD4 #D43F6F #B9D43F #3FD4A4
split-complementary
#5A3FD4 #D4A43F #6FD43F
monochromatic
#2D1C7D #4027AF #5A3FD4 #8571DF #B0A3EA

Accessibility & contrast

On white

6.78
#5A3FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5A3FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FD4
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FD4#FFFFFF#000000##FFFFFF
##5A3FD41.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D8
Deuteranopia (green-blind)
#0056D1
Tritanopia (blue-blind)
#146785
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a3fd4;
/* rgb */ color: rgb(90, 63, 212);
/* oklch */ color: oklch(49.4% 0.215 283.5);
Tailwind
colors: {
  custom: {
    50: '#9577e2',
    500: '#5a3fd4',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fd4;
$custom-light: #9577e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fd4",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 212
  },
  "hsl": {
    "h": 250.872,
    "s": 63.404,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49354,
    "c": 0.2152,
    "h": 283.5
  },
  "luminance": 0.10482
}

Semantic roles & 50–950 ramp

primary
#5A3FD4
secondary
#CCD798
accent
#E641C9
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5A3FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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