#5A3BBD#5A3BBD

#5A3BBD is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.8% C 0.192 H 287.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5A3BBD
RGBrgb(90, 59, 189)
HSLhsl(254, 52%, 49%)
HSVhsv(254, 69%, 74%)
CMYKcmyk(52.4%, 68.8%, 0%, 25.9%)
CIE-LABlab(35.94, 46.12, -63.80)
CIE-LCHlch(35.94, 78.72, 305.86°)
OKLaboklab(46.78% 0.0576 -0.1832)
OKLCHoklch(46.78% 0.192 287.5)
XYZxyz(14.9630, 8.9750, 49.0782)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BBD #9EBD3B
analogous
#3B5DBD #5A3BBD #9B3BBD
triadic
#5A3BBD #BD5A3B #3BBD5A
tetradic
#5A3BBD #BD3B5D #9EBD3B #3BBD9B
square
#5A3BBD #BD3B5D #9EBD3B #3BBD9B
split-complementary
#5A3BBD #BD9B3B #5DBD3B
monochromatic
#2E1E60 #442C8E #5A3BBD #7F66CF #A695DE

Accessibility & contrast

On white

7.51
#5A3BBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5A3BBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BBD
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BBD#FFFFFF#000000##FFFFFF
##5A3BBD1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#0051BA
Tritanopia (blue-blind)
#345C77
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a3bbd;
/* rgb */ color: rgb(90, 59, 189);
/* oklch */ color: oklch(46.8% 0.192 287.5);
Tailwind
colors: {
  custom: {
    50: '#9273d2',
    500: '#5a3bbd',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bbd;
$custom-light: #9273d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bbd",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 189
  },
  "hsl": {
    "h": 254.308,
    "s": 52.419,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46778,
    "c": 0.19209,
    "h": 287.5
  },
  "luminance": 0.08976
}

Semantic roles & 50–950 ramp

primary
#5A3BBD
secondary
#BAC98B
accent
#DC4CBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3BBD

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

Preview Lab → · Contrast checker → · Palette generator →

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