#5B38BD#5B38BD

#5B38BD is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.5% C 0.196 H 288.4°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5B38BD
RGBrgb(91, 56, 189)
HSLhsl(256, 54%, 48%)
HSVhsv(256, 70%, 74%)
CMYKcmyk(51.9%, 70.4%, 0%, 25.9%)
CIE-LABlab(35.45, 47.90, -64.59)
CIE-LCHlch(35.45, 80.41, 306.56°)
OKLaboklab(46.46% 0.0618 -0.1855)
OKLCHoklch(46.46% 0.196 288.4)
XYZxyz(14.9112, 8.7259, 49.0328)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38BD #9ABD38
analogous
#3858BD #5B38BD #9D38BD
triadic
#5B38BD #BD5B38 #38BD5B
tetradic
#5B38BD #BD3858 #9ABD38 #38BD9D
square
#5B38BD #BD3858 #9ABD38 #38BD9D
split-complementary
#5B38BD #BD9D38 #58BD38
monochromatic
#2E1C5F #442A8E #5B38BD #7F62D0 #A591DE

Accessibility & contrast

On white

7.65
#5B38BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5B38BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B38BD
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38BD#FFFFFF#000000##FFFFFF
##5B38BD1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#365B76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b38bd;
/* rgb */ color: rgb(91, 56, 189);
/* oklch */ color: oklch(46.5% 0.196 288.4);
Tailwind
colors: {
  custom: {
    50: '#9372d2',
    500: '#5b38bd',
    950: '#000000',
  },
}
SCSS
$custom: #5b38bd;
$custom-light: #9372d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38bd",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 255.789,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46455,
    "c": 0.19552,
    "h": 288.4
  },
  "luminance": 0.08727
}

Semantic roles & 50–950 ramp

primary
#5B38BD
secondary
#B8C987
accent
#DE4AB7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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