#5A3BD4#5A3BD4

#5A3BD4 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.8% C 0.219 H 284.0°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5A3BD4
RGBrgb(90, 59, 212)
HSLhsl(252, 64%, 53%)
HSVhsv(252, 72%, 83%)
CMYKcmyk(57.5%, 72.2%, 0%, 16.9%)
CIE-LABlab(37.94, 52.82, -73.91)
CIE-LCHlch(37.94, 90.84, 305.55°)
OKLaboklab(48.82% 0.0532 -0.2129)
OKLCHoklch(48.82% 0.219 284)
XYZxyz(17.6604, 10.0539, 63.2846)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BD4 #B5D43B
analogous
#3B68D4 #5A3BD4 #A63BD4
triadic
#5A3BD4 #D45A3B #3BD45A
tetradic
#5A3BD4 #D43B68 #B5D43B #3BD4A6
square
#5A3BD4 #D43B68 #B5D43B #3BD4A6
split-complementary
#5A3BD4 #D4A63B #68D43B
monochromatic
#2E1B7A #4126AC #5A3BD4 #846DDF #AF9FEA

Accessibility & contrast

On white

6.97
#5A3BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5A3BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3BD4
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BD4#FFFFFF#000000##FFFFFF
##5A3BD41.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED8
Deuteranopia (green-blind)
#0054D1
Tritanopia (blue-blind)
#156584
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a3bd4;
/* rgb */ color: rgb(90, 59, 212);
/* oklch */ color: oklch(48.8% 0.219 284.0);
Tailwind
colors: {
  custom: {
    50: '#9574e2',
    500: '#5a3bd4',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bd4;
$custom-light: #9574e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bd4",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 212
  },
  "hsl": {
    "h": 252.157,
    "s": 64.017,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48819,
    "c": 0.21942,
    "h": 284
  },
  "luminance": 0.10055
}

Semantic roles & 50–950 ramp

primary
#5A3BD4
secondary
#C9D694
accent
#E741C5
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5A3BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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