#5A3DC5#5A3DC5

#5A3DC5 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.8% C 0.199 H 285.9°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5A3DC5
RGBrgb(90, 61, 197)
HSLhsl(253, 54%, 51%)
HSVhsv(253, 69%, 77%)
CMYKcmyk(54.3%, 69%, 0%, 22.7%)
CIE-LABlab(37.01, 47.37, -66.74)
CIE-LCHlch(37.01, 81.84, 305.37°)
OKLaboklab(47.75% 0.0545 -0.1919)
OKLCHoklch(47.75% 0.199 285.9)
XYZxyz(15.9602, 9.5415, 53.8132)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DC5 #A8C53D
analogous
#3D64C5 #5A3DC5 #9E3DC5
triadic
#5A3DC5 #C55A3D #3DC55A
tetradic
#5A3DC5 #C53D64 #A8C53D #3DC59E
square
#5A3DC5 #C53D64 #A8C53D #3DC59E
split-complementary
#5A3DC5 #C59E3D #64C53D
monochromatic
#2F1F68 #442D98 #5A3DC5 #826CD3 #AA9BE1

Accessibility & contrast

On white

7.22
#5A3DC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5A3DC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DC5
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DC5#FFFFFF#000000##FFFFFF
##5A3DC51.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#0053C2
Tritanopia (blue-blind)
#2C607C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3dc5;
/* rgb */ color: rgb(90, 61, 197);
/* oklch */ color: oklch(47.8% 0.199 285.9);
Tailwind
colors: {
  custom: {
    50: '#9375d8',
    500: '#5a3dc5',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dc5;
$custom-light: #9375d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dc5",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 197
  },
  "hsl": {
    "h": 252.794,
    "s": 53.968,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47752,
    "c": 0.19945,
    "h": 285.9
  },
  "luminance": 0.09542
}

Semantic roles & 50–950 ramp

primary
#5A3DC5
secondary
#C0CD91
accent
#DD4ABE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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