#5A3BB2#5A3BB2

#5A3BB2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.9% C 0.179 H 289.4°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5A3BB2
RGBrgb(90, 59, 178)
HSLhsl(256, 50%, 46%)
HSVhsv(256, 67%, 70%)
CMYKcmyk(49.4%, 66.9%, 0%, 30.2%)
CIE-LABlab(35.03, 42.91, -58.78)
CIE-LCHlch(35.03, 72.77, 306.13°)
OKLaboklab(45.85% 0.0593 -0.1685)
OKLCHoklch(45.85% 0.179 289.4)
XYZxyz(13.8140, 8.5154, 43.0266)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BB2 #93B23B
analogous
#3B58B2 #5A3BB2 #963BB2
triadic
#5A3BB2 #B25A3B #3BB25A
tetradic
#5A3BB2 #B23B58 #93B23B #3BB296
square
#5A3BB2 #B23B58 #93B23B #3BB296
split-complementary
#5A3BB2 #B2963B #58B23B
monochromatic
#2C1D56 #432C84 #5A3BB2 #7C60CA #A28EDA

Accessibility & contrast

On white

7.77
#5A3BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A3BB2
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BB2#FFFFFF#000000##FFFFFF
##5A3BB21.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#3C5871
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a3bb2;
/* rgb */ color: rgb(90, 59, 178);
/* oklch */ color: oklch(45.9% 0.179 289.4);
Tailwind
colors: {
  custom: {
    50: '#9073ca',
    500: '#5a3bb2',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bb2;
$custom-light: #9073ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bb2",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 178
  },
  "hsl": {
    "h": 255.63,
    "s": 50.211,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4585,
    "c": 0.17862,
    "h": 289.4
  },
  "luminance": 0.08516
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A3BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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