#5A3BB1#5A3BB1

#5A3BB1 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.8% C 0.177 H 289.6°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5A3BB1
RGBrgb(90, 59, 177)
HSLhsl(256, 50%, 46%)
HSVhsv(256, 67%, 69%)
CMYKcmyk(49.2%, 66.7%, 0%, 30.6%)
CIE-LABlab(34.95, 42.62, -58.31)
CIE-LCHlch(34.95, 72.23, 306.16°)
OKLaboklab(45.77% 0.0595 -0.1671)
OKLCHoklch(45.77% 0.177 289.6)
XYZxyz(13.7139, 8.4754, 42.4998)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BB1 #92B13B
analogous
#3B57B1 #5A3BB1 #953BB1
triadic
#5A3BB1 #B15A3B #3BB15A
tetradic
#5A3BB1 #B13B57 #92B13B #3BB195
square
#5A3BB1 #B13B57 #92B13B #3BB195
split-complementary
#5A3BB1 #B1953B #57B13B
monochromatic
#2B1C55 #432C83 #5A3BB1 #7B5FCA #A18DD9

Accessibility & contrast

On white

7.79
#5A3BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5A3BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BB1
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BB1#FFFFFF#000000##FFFFFF
##5A3BB11.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#3D5871
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a3bb1;
/* rgb */ color: rgb(90, 59, 177);
/* oklch */ color: oklch(45.8% 0.177 289.6);
Tailwind
colors: {
  custom: {
    50: '#9073c9',
    500: '#5a3bb1',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bb1;
$custom-light: #9073c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bb1",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 177
  },
  "hsl": {
    "h": 255.763,
    "s": 50,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45767,
    "c": 0.17738,
    "h": 289.6
  },
  "luminance": 0.08476
}

Semantic roles & 50–950 ramp

primary
#5A3BB1
secondary
#B3C484
accent
#DA4EB5
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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