#5B38BA#5B38BA

#5B38BA is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.192 H 288.9°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5B38BA
RGBrgb(91, 56, 186)
HSLhsl(256, 54%, 47%)
HSVhsv(256, 70%, 73%)
CMYKcmyk(51.1%, 69.9%, 0%, 27.1%)
CIE-LABlab(35.20, 47.04, -63.24)
CIE-LCHlch(35.20, 78.81, 306.64°)
OKLaboklab(46.2% 0.0623 -0.1815)
OKLCHoklch(46.2% 0.192 288.9)
XYZxyz(14.5889, 8.5970, 47.3355)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38BA #97BA38
analogous
#3856BA #5B38BA #9C38BA
triadic
#5B38BA #BA5B38 #38BA5B
tetradic
#5B38BA #BA3856 #97BA38 #38BA9C
square
#5B38BA #BA3856 #97BA38 #38BA9C
split-complementary
#5B38BA #BA9C38 #56BA38
monochromatic
#2D1C5C #442A8B #5B38BA #7E60CF #A48FDD

Accessibility & contrast

On white

7.72
#5B38BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5B38BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B38BA
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38BA#FFFFFF#000000##FFFFFF
##5B38BA1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#395A75
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b38ba;
/* rgb */ color: rgb(91, 56, 186);
/* oklch */ color: oklch(46.2% 0.192 288.9);
Tailwind
colors: {
  custom: {
    50: '#9271d0',
    500: '#5b38ba',
    950: '#000000',
  },
}
SCSS
$custom: #5b38ba;
$custom-light: #9271d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38ba",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 256.154,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46195,
    "c": 0.19195,
    "h": 288.9
  },
  "luminance": 0.08598
}

Semantic roles & 50–950 ramp

primary
#5B38BA
secondary
#B6C886
accent
#DD4BB6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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