#5A3DC6#5A3DC6

#5A3DC6 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 47.8% C 0.201 H 285.7°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5A3DC6
RGBrgb(90, 61, 198)
HSLhsl(253, 55%, 51%)
HSVhsv(253, 69%, 78%)
CMYKcmyk(54.5%, 69.2%, 0%, 22.4%)
CIE-LABlab(37.09, 47.67, -67.18)
CIE-LCHlch(37.09, 82.37, 305.36°)
OKLaboklab(47.84% 0.0543 -0.1932)
OKLCHoklch(47.84% 0.201 285.7)
XYZxyz(16.0752, 9.5875, 54.4186)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DC6 #A9C63D
analogous
#3D64C6 #5A3DC6 #9F3DC6
triadic
#5A3DC6 #C65A3D #3DC65A
tetradic
#5A3DC6 #C63D64 #A9C63D #3DC69F
square
#5A3DC6 #C63D64 #A9C63D #3DC69F
split-complementary
#5A3DC6 #C69F3D #64C63D
monochromatic
#2F1F6A #442D99 #5A3DC6 #826CD4 #AA9CE2

Accessibility & contrast

On white

7.20
#5A3DC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5A3DC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DC6
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DC6#FFFFFF#000000##FFFFFF
##5A3DC61.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#0053C3
Tritanopia (blue-blind)
#2B617D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3dc6;
/* rgb */ color: rgb(90, 61, 198);
/* oklch */ color: oklch(47.8% 0.201 285.7);
Tailwind
colors: {
  custom: {
    50: '#9375d8',
    500: '#5a3dc6',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dc6;
$custom-light: #9375d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dc6",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 198
  },
  "hsl": {
    "h": 252.701,
    "s": 54.582,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47839,
    "c": 0.20066,
    "h": 285.7
  },
  "luminance": 0.09588
}

Semantic roles & 50–950 ramp

primary
#5A3DC6
secondary
#C1CE91
accent
#DE4ABF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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