#5B38BF#5B38BF

#5B38BF is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.198 H 288.1°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5B38BF
RGBrgb(91, 56, 191)
HSLhsl(256, 55%, 48%)
HSVhsv(256, 71%, 75%)
CMYKcmyk(52.4%, 70.7%, 0%, 25.1%)
CIE-LABlab(35.62, 48.47, -65.48)
CIE-LCHlch(35.62, 81.47, 306.51°)
OKLaboklab(46.63% 0.0614 -0.1881)
OKLCHoklch(46.63% 0.198 288.1)
XYZxyz(15.1298, 8.8134, 50.1840)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38BF #9CBF38
analogous
#3858BF #5B38BF #9E38BF
triadic
#5B38BF #BF5B38 #38BF5B
tetradic
#5B38BF #BF3858 #9CBF38 #38BF9E
square
#5B38BF #BF3858 #9CBF38 #38BF9E
split-complementary
#5B38BF #BF9E38 #58BF38
monochromatic
#2E1C60 #442A90 #5B38BF #8063D1 #A692DF

Accessibility & contrast

On white

7.60
#5B38BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5B38BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B38BF
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38BF#FFFFFF#000000##FFFFFF
##5B38BF1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#0050BC
Tritanopia (blue-blind)
#355B78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b38bf;
/* rgb */ color: rgb(91, 56, 191);
/* oklch */ color: oklch(46.6% 0.198 288.1);
Tailwind
colors: {
  custom: {
    50: '#9372d3',
    500: '#5b38bf',
    950: '#000000',
  },
}
SCSS
$custom: #5b38bf;
$custom-light: #9372d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38bf",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 255.556,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4663,
    "c": 0.1979,
    "h": 288.1
  },
  "luminance": 0.08814
}

Semantic roles & 50–950 ramp

primary
#5B38BF
secondary
#B9CA89
accent
#DE4AB8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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