#5A3BC1#5A3BC1

#5A3BC1 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.1% C 0.197 H 286.8°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#5A3BC1
RGBrgb(90, 59, 193)
HSLhsl(254, 53%, 49%)
HSVhsv(254, 69%, 76%)
CMYKcmyk(53.4%, 69.4%, 0%, 24.3%)
CIE-LABlab(36.27, 47.28, -65.60)
CIE-LCHlch(36.27, 80.86, 305.79°)
OKLaboklab(47.12% 0.057 -0.1885)
OKLCHoklch(47.12% 0.197 286.8)
XYZxyz(15.4032, 9.1510, 51.3964)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BC1 #A2C13B
analogous
#3B5FC1 #5A3BC1 #9D3BC1
triadic
#5A3BC1 #C15A3B #3BC15A
tetradic
#5A3BC1 #C13B5F #A2C13B #3BC19D
square
#5A3BC1 #C13B5F #A2C13B #3BC19D
split-complementary
#5A3BC1 #C19D3B #5FC13B
monochromatic
#2E1E63 #442D92 #5A3BC1 #8068D1 #A897DF

Accessibility & contrast

On white

7.42
#5A3BC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5A3BC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BC1
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BC1#FFFFFF#000000##FFFFFF
##5A3BC11.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#0052BE
Tritanopia (blue-blind)
#305E79
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a3bc1;
/* rgb */ color: rgb(90, 59, 193);
/* oklch */ color: oklch(47.1% 0.197 286.8);
Tailwind
colors: {
  custom: {
    50: '#9273d5',
    500: '#5a3bc1',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bc1;
$custom-light: #9273d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bc1",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 193
  },
  "hsl": {
    "h": 253.881,
    "s": 53.175,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47123,
    "c": 0.19693,
    "h": 286.8
  },
  "luminance": 0.09152
}

Semantic roles & 50–950 ramp

primary
#5A3BC1
secondary
#BDCB8D
accent
#DD4BBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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