#5A3BC7#5A3BC7

#5A3BC7 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.6% C 0.204 H 285.9°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5A3BC7
RGBrgb(90, 59, 199)
HSLhsl(253, 56%, 51%)
HSVhsv(253, 70%, 78%)
CMYKcmyk(54.8%, 70.4%, 0%, 22%)
CIE-LABlab(36.79, 49.03, -68.26)
CIE-LCHlch(36.79, 84.05, 305.69°)
OKLaboklab(47.65% 0.0559 -0.1963)
OKLCHoklch(47.65% 0.204 285.9)
XYZxyz(16.0861, 9.4242, 54.9932)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BC7 #A8C73B
analogous
#3B62C7 #5A3BC7 #A03BC7
triadic
#5A3BC7 #C75A3B #3BC75A
tetradic
#5A3BC7 #C73B62 #A8C73B #3BC7A0
square
#5A3BC7 #C73B62 #A8C73B #3BC7A0
split-complementary
#5A3BC7 #C7A03B #62C73B
monochromatic
#2F1E69 #442C99 #5A3BC7 #826BD5 #AA9AE2

Accessibility & contrast

On white

7.28
#5A3BC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5A3BC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BC7
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BC7#FFFFFF#000000##FFFFFF
##5A3BC71.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#0052C4
Tritanopia (blue-blind)
#2A607D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3bc7;
/* rgb */ color: rgb(90, 59, 199);
/* oklch */ color: oklch(47.6% 0.204 285.9);
Tailwind
colors: {
  custom: {
    50: '#9374d9',
    500: '#5a3bc7',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bc7;
$custom-light: #9374d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bc7",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 199
  },
  "hsl": {
    "h": 253.286,
    "s": 55.556,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47649,
    "c": 0.20411,
    "h": 285.9
  },
  "luminance": 0.09425
}

Semantic roles & 50–950 ramp

primary
#5A3BC7
secondary
#C0CE90
accent
#DF49BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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