#5A3DC4#5A3DC4

#5A3DC4 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.7% C 0.198 H 286.0°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5A3DC4
RGBrgb(90, 61, 196)
HSLhsl(253, 53%, 50%)
HSVhsv(253, 69%, 77%)
CMYKcmyk(54.1%, 68.9%, 0%, 23.1%)
CIE-LABlab(36.92, 47.08, -66.29)
CIE-LCHlch(36.92, 81.31, 305.38°)
OKLaboklab(47.67% 0.0547 -0.1905)
OKLCHoklch(47.67% 0.198 286)
XYZxyz(15.8460, 9.4958, 53.2118)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DC4 #A7C43D
analogous
#3D63C4 #5A3DC4 #9E3DC4
triadic
#5A3DC4 #C45A3D #3DC45A
tetradic
#5A3DC4 #C43D63 #A7C43D #3DC49E
square
#5A3DC4 #C43D63 #A7C43D #3DC49E
split-complementary
#5A3DC4 #C49E3D #63C43D
monochromatic
#2F1F67 #442E96 #5A3DC4 #826CD2 #AA9BE1

Accessibility & contrast

On white

7.24
#5A3DC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5A3DC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DC4
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DC4#FFFFFF#000000##FFFFFF
##5A3DC41.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#0053C1
Tritanopia (blue-blind)
#2D607C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3dc4;
/* rgb */ color: rgb(90, 61, 196);
/* oklch */ color: oklch(47.7% 0.198 286.0);
Tailwind
colors: {
  custom: {
    50: '#9375d7',
    500: '#5a3dc4',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dc4;
$custom-light: #9375d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dc4",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 196
  },
  "hsl": {
    "h": 252.889,
    "s": 53.36,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47666,
    "c": 0.19824,
    "h": 286
  },
  "luminance": 0.09497
}

Semantic roles & 50–950 ramp

primary
#5A3DC4
secondary
#C0CD90
accent
#DD4BBD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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