#5B3FA2#5B3FA2

#5B3FA2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.3% C 0.153 H 292.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5B3FA2
RGBrgb(91, 63, 162)
HSLhsl(257, 44%, 44%)
HSVhsv(257, 61%, 64%)
CMYKcmyk(43.8%, 61.1%, 0%, 36.5%)
CIE-LABlab(34.78, 36.16, -49.63)
CIE-LCHlch(34.78, 61.40, 306.08°)
OKLaboklab(45.31% 0.0578 -0.1415)
OKLCHoklch(45.31% 0.153 292.2)
XYZxyz(12.6117, 8.3874, 35.1299)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FA2 #86A23F
analogous
#3F55A2 #5B3FA2 #8D3FA2
triadic
#5B3FA2 #A25B3F #3FA25B
tetradic
#5B3FA2 #A23F55 #86A23F #3FA28D
square
#5B3FA2 #A23F55 #86A23F #3FA28D
split-complementary
#5B3FA2 #A28D3F #55A23F
monochromatic
#291D4A #422E76 #5B3FA2 #7A5EC0 #9E8AD1

Accessibility & contrast

On white

7.84
#5B3FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5B3FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3FA2
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FA2#FFFFFF#000000##FFFFFF
##5B3FA21.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#47556A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b3fa2;
/* rgb */ color: rgb(91, 63, 162);
/* oklch */ color: oklch(45.3% 0.153 292.2);
Tailwind
colors: {
  custom: {
    50: '#8f75be',
    500: '#5b3fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fa2;
$custom-light: #8f75be;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fa2",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 256.97,
    "s": 44,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45305,
    "c": 0.15291,
    "h": 292.2
  },
  "luminance": 0.08388
}

Semantic roles & 50–950 ramp

primary
#5B3FA2
secondary
#ABBC81
accent
#D454B0
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5B3FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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