#5A3BBF#5A3BBF

#5A3BBF is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.9% C 0.195 H 287.1°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5A3BBF
RGBrgb(90, 59, 191)
HSLhsl(254, 53%, 49%)
HSVhsv(254, 69%, 75%)
CMYKcmyk(52.9%, 69.1%, 0%, 25.1%)
CIE-LABlab(36.10, 46.70, -64.70)
CIE-LCHlch(36.10, 79.79, 305.82°)
OKLaboklab(46.95% 0.0573 -0.1859)
OKLCHoklch(46.95% 0.195 287.1)
XYZxyz(15.1816, 9.0624, 50.2294)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BBF #A0BF3B
analogous
#3B5EBF #5A3BBF #9C3BBF
triadic
#5A3BBF #BF5A3B #3BBF5A
tetradic
#5A3BBF #BF3B5E #A0BF3B #3BBF9C
square
#5A3BBF #BF3B5E #A0BF3B #3BBF9C
split-complementary
#5A3BBF #BF9C3B #5EBF3B
monochromatic
#2E1E61 #442D90 #5A3BBF #8067D0 #A796DF

Accessibility & contrast

On white

7.47
#5A3BBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5A3BBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BBF
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BBF#FFFFFF#000000##FFFFFF
##5A3BBF1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#0051BC
Tritanopia (blue-blind)
#325D78
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a3bbf;
/* rgb */ color: rgb(90, 59, 191);
/* oklch */ color: oklch(46.9% 0.195 287.1);
Tailwind
colors: {
  custom: {
    50: '#9273d3',
    500: '#5a3bbf',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bbf;
$custom-light: #9273d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bbf",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 191
  },
  "hsl": {
    "h": 254.091,
    "s": 52.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.4695,
    "c": 0.19451,
    "h": 287.1
  },
  "luminance": 0.09063
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A3BBF

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

Preview Lab → · Contrast checker → · Palette generator →

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