#5B38BB#5B38BB

#5B38BB is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.3% C 0.193 H 288.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#5B38BB
RGBrgb(91, 56, 187)
HSLhsl(256, 54%, 48%)
HSVhsv(256, 70%, 73%)
CMYKcmyk(51.3%, 70.1%, 0%, 26.7%)
CIE-LABlab(35.28, 47.32, -63.69)
CIE-LCHlch(35.28, 79.35, 306.61°)
OKLaboklab(46.28% 0.0621 -0.1829)
OKLCHoklch(46.28% 0.193 288.8)
XYZxyz(14.6956, 8.6397, 47.8974)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38BB #98BB38
analogous
#3856BB #5B38BB #9D38BB
triadic
#5B38BB #BB5B38 #38BB5B
tetradic
#5B38BB #BB3856 #98BB38 #38BB9D
square
#5B38BB #BB3856 #98BB38 #38BB9D
split-complementary
#5B38BB #BB9D38 #56BB38
monochromatic
#2D1C5D #442A8C #5B38BB #7E61D0 #A590DE

Accessibility & contrast

On white

7.70
#5B38BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5B38BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B38BB
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38BB#FFFFFF#000000##FFFFFF
##5B38BB1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#385A75
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b38bb;
/* rgb */ color: rgb(91, 56, 187);
/* oklch */ color: oklch(46.3% 0.193 288.8);
Tailwind
colors: {
  custom: {
    50: '#9271d0',
    500: '#5b38bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b38bb;
$custom-light: #9271d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38bb",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 256.031,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46281,
    "c": 0.19315,
    "h": 288.8
  },
  "luminance": 0.0864
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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