#5A3FBB#5A3FBB

#5A3FBB is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.2% C 0.185 H 287.1°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5A3FBB
RGBrgb(90, 63, 187)
HSLhsl(253, 50%, 49%)
HSVhsv(253, 66%, 73%)
CMYKcmyk(51.9%, 66.3%, 0%, 26.7%)
CIE-LABlab(36.59, 43.31, -61.57)
CIE-LCHlch(36.59, 75.27, 305.12°)
OKLaboklab(47.19% 0.0542 -0.1767)
OKLCHoklch(47.19% 0.185 287.1)
XYZxyz(14.9609, 9.3158, 48.0139)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FBB #A0BB3F
analogous
#3F62BB #5A3FBB #983FBB
triadic
#5A3FBB #BB5A3F #3FBB5A
tetradic
#5A3FBB #BB3F62 #A0BB3F #3FBB98
square
#5A3FBB #BB3F62 #A0BB3F #3FBB98
split-complementary
#5A3FBB #BB983F #62BB3F
monochromatic
#2E205F #44308D #5A3FBB #806ACD #A798DC

Accessibility & contrast

On white

7.33
#5A3FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5A3FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3FBB
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FBB#FFFFFF#000000##FFFFFF
##5A3FBB1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BF
Deuteranopia (green-blind)
#0053B9
Tritanopia (blue-blind)
#355E77
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3fbb;
/* rgb */ color: rgb(90, 63, 187);
/* oklch */ color: oklch(47.2% 0.185 287.1);
Tailwind
colors: {
  custom: {
    50: '#9176d0',
    500: '#5a3fbb',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fbb;
$custom-light: #9176d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fbb",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 187
  },
  "hsl": {
    "h": 253.065,
    "s": 49.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47193,
    "c": 0.1848,
    "h": 287.1
  },
  "luminance": 0.09317
}

Semantic roles & 50–950 ramp

primary
#5A3FBB
secondary
#BBC88E
accent
#D94FBB
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A3FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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