#5B38C3#5B38C3

#5B38C3 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.0% C 0.203 H 287.4°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#5B38C3
RGBrgb(91, 56, 195)
HSLhsl(255, 55%, 49%)
HSVhsv(255, 71%, 76%)
CMYKcmyk(53.3%, 71.3%, 0%, 23.5%)
CIE-LABlab(35.97, 49.61, -67.26)
CIE-LCHlch(35.97, 83.58, 306.41°)
OKLaboklab(46.98% 0.0606 -0.1934)
OKLCHoklch(46.98% 0.203 287.4)
XYZxyz(15.5760, 8.9918, 52.5340)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38C3 #A0C338
analogous
#385BC3 #5B38C3 #A138C3
triadic
#5B38C3 #C35B38 #38C35B
tetradic
#5B38C3 #C3385B #A0C338 #38C3A1
square
#5B38C3 #C3385B #A0C338 #38C3A1
split-complementary
#5B38C3 #C3A138 #5BC338
monochromatic
#2F1D64 #452A93 #5B38C3 #8165D3 #A895E1

Accessibility & contrast

On white

7.50
#5B38C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5B38C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B38C3
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38C3#FFFFFF#000000##FFFFFF
##5B38C31.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C7
Deuteranopia (green-blind)
#0051C0
Tritanopia (blue-blind)
#315D7A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b38c3;
/* rgb */ color: rgb(91, 56, 195);
/* oklch */ color: oklch(47.0% 0.203 287.4);
Tailwind
colors: {
  custom: {
    50: '#9472d6',
    500: '#5b38c3',
    950: '#000000',
  },
}
SCSS
$custom: #5b38c3;
$custom-light: #9472d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38c3",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 255.108,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46982,
    "c": 0.20263,
    "h": 287.4
  },
  "luminance": 0.08993
}

Semantic roles & 50–950 ramp

primary
#5B38C3
secondary
#BBCC8B
accent
#DF49B9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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