#5A3BBB#5A3BBB

#5A3BBB is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.6% C 0.190 H 287.8°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5A3BBB
RGBrgb(90, 59, 187)
HSLhsl(255, 52%, 48%)
HSVhsv(255, 68%, 73%)
CMYKcmyk(51.9%, 68.4%, 0%, 26.7%)
CIE-LABlab(35.77, 45.53, -62.90)
CIE-LCHlch(35.77, 77.65, 305.90°)
OKLaboklab(46.61% 0.058 -0.1806)
OKLCHoklch(46.61% 0.19 287.8)
XYZxyz(14.7474, 8.8887, 47.9427)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BBB #9CBB3B
analogous
#3B5CBB #5A3BBB #9A3BBB
triadic
#5A3BBB #BB5A3B #3BBB5A
tetradic
#5A3BBB #BB3B5C #9CBB3B #3BBB9A
square
#5A3BBB #BB3B5C #9CBB3B #3BBB9A
split-complementary
#5A3BBB #BB9A3B #5CBB3B
monochromatic
#2D1E5E #442C8C #5A3BBB #7E65CE #A593DD

Accessibility & contrast

On white

7.56
#5A3BBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5A3BBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BBB
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BBB#FFFFFF#000000##FFFFFF
##5A3BBB1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#355C76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a3bbb;
/* rgb */ color: rgb(90, 59, 187);
/* oklch */ color: oklch(46.6% 0.190 287.8);
Tailwind
colors: {
  custom: {
    50: '#9273d0',
    500: '#5a3bbb',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bbb;
$custom-light: #9273d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bbb",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 187
  },
  "hsl": {
    "h": 254.531,
    "s": 52.033,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46607,
    "c": 0.18967,
    "h": 287.8
  },
  "luminance": 0.08889
}

Semantic roles & 50–950 ramp

primary
#5A3BBB
secondary
#B9C88A
accent
#DB4CB9
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A3BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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