#5B38C0#5B38C0

#5B38C0 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.7% C 0.199 H 287.9°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5B38C0
RGBrgb(91, 56, 192)
HSLhsl(255, 55%, 49%)
HSVhsv(255, 71%, 75%)
CMYKcmyk(52.6%, 70.8%, 0%, 24.7%)
CIE-LABlab(35.71, 48.75, -65.93)
CIE-LCHlch(35.71, 82.00, 306.48°)
OKLaboklab(46.72% 0.0612 -0.1894)
OKLCHoklch(46.72% 0.199 287.9)
XYZxyz(15.2402, 8.8575, 50.7656)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38C0 #9DC038
analogous
#3859C0 #5B38C0 #9F38C0
triadic
#5B38C0 #C05B38 #38C05B
tetradic
#5B38C0 #C03859 #9DC038 #38C09F
square
#5B38C0 #C03859 #9DC038 #38C09F
split-complementary
#5B38C0 #C09F38 #59C038
monochromatic
#2E1C61 #452A91 #5B38C0 #8064D2 #A793DF

Accessibility & contrast

On white

7.58
#5B38C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5B38C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B38C0
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38C0#FFFFFF#000000##FFFFFF
##5B38C01.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#0050BD
Tritanopia (blue-blind)
#345C78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b38c0;
/* rgb */ color: rgb(91, 56, 192);
/* oklch */ color: oklch(46.7% 0.199 287.9);
Tailwind
colors: {
  custom: {
    50: '#9372d4',
    500: '#5b38c0',
    950: '#000000',
  },
}
SCSS
$custom: #5b38c0;
$custom-light: #9372d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38c0",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 255.441,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46717,
    "c": 0.19908,
    "h": 287.9
  },
  "luminance": 0.08858
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B38C0

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

Preview Lab → · Contrast checker → · Palette generator →

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