#5B38BC#5B38BC

#5B38BC is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.194 H 288.6°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#5B38BC
RGBrgb(91, 56, 188)
HSLhsl(256, 54%, 48%)
HSVhsv(256, 70%, 74%)
CMYKcmyk(51.6%, 70.2%, 0%, 26.3%)
CIE-LABlab(35.37, 47.61, -64.14)
CIE-LCHlch(35.37, 79.88, 306.58°)
OKLaboklab(46.37% 0.062 -0.1842)
OKLCHoklch(46.37% 0.194 288.6)
XYZxyz(14.8030, 8.6826, 48.4631)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38BC #99BC38
analogous
#3857BC #5B38BC #9D38BC
triadic
#5B38BC #BC5B38 #38BC5B
tetradic
#5B38BC #BC3857 #99BC38 #38BC9D
square
#5B38BC #BC3857 #99BC38 #38BC9D
split-complementary
#5B38BC #BC9D38 #57BC38
monochromatic
#2D1C5E #442A8D #5B38BC #7F61D0 #A590DE

Accessibility & contrast

On white

7.67
#5B38BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5B38BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B38BC
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38BC#FFFFFF#000000##FFFFFF
##5B38BC1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0050B9
Tritanopia (blue-blind)
#375A76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b38bc;
/* rgb */ color: rgb(91, 56, 188);
/* oklch */ color: oklch(46.4% 0.194 288.6);
Tailwind
colors: {
  custom: {
    50: '#9371d1',
    500: '#5b38bc',
    950: '#000000',
  },
}
SCSS
$custom: #5b38bc;
$custom-light: #9371d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38bc",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 255.909,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46368,
    "c": 0.19434,
    "h": 288.6
  },
  "luminance": 0.08683
}

Semantic roles & 50–950 ramp

primary
#5B38BC
secondary
#B7C987
accent
#DD4AB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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