#5A3FD0#5A3FD0

#5A3FD0 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.0% C 0.210 H 284.0°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5A3FD0
RGBrgb(90, 63, 208)
HSLhsl(251, 61%, 53%)
HSVhsv(251, 70%, 82%)
CMYKcmyk(56.7%, 69.7%, 0%, 18.4%)
CIE-LABlab(38.34, 49.53, -70.94)
CIE-LCHlch(38.34, 86.52, 304.93°)
OKLaboklab(49% 0.0509 -0.2042)
OKLCHoklch(49% 0.21 284)
XYZxyz(17.3756, 10.2817, 60.7312)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FD0 #B5D03F
analogous
#3F6DD0 #5A3FD0 #A23FD0
triadic
#5A3FD0 #D05A3F #3FD05A
tetradic
#5A3FD0 #D03F6D #B5D03F #3FD0A2
square
#5A3FD0 #D03F6D #B5D03F #3FD0A2
split-complementary
#5A3FD0 #D0A23F #6DD03F
monochromatic
#2E1D77 #4129A9 #5A3FD0 #8470DC #AFA1E8

Accessibility & contrast

On white

6.87
#5A3FD0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5A3FD0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FD0
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FD0#FFFFFF#000000##FFFFFF
##5A3FD01.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD4
Deuteranopia (green-blind)
#0056CD
Tritanopia (blue-blind)
#1C6583
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a3fd0;
/* rgb */ color: rgb(90, 63, 208);
/* oklch */ color: oklch(49.0% 0.210 284.0);
Tailwind
colors: {
  custom: {
    50: '#9576e0',
    500: '#5a3fd0',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fd0;
$custom-light: #9576e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fd0",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 208
  },
  "hsl": {
    "h": 251.172,
    "s": 60.669,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48998,
    "c": 0.21043,
    "h": 284
  },
  "luminance": 0.10283
}

Semantic roles & 50–950 ramp

primary
#5A3FD0
secondary
#C9D596
accent
#E444C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A3FD0

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

Preview Lab → · Contrast checker → · Palette generator →

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