#5B38C8#5B38C8

#5B38C8 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.4% C 0.208 H 286.6°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5B38C8
RGBrgb(91, 56, 200)
HSLhsl(255, 57%, 50%)
HSVhsv(255, 72%, 78%)
CMYKcmyk(54.5%, 72%, 0%, 21.6%)
CIE-LABlab(36.41, 51.05, -69.46)
CIE-LCHlch(36.41, 86.20, 306.31°)
OKLaboklab(47.43% 0.0595 -0.1998)
OKLCHoklch(47.43% 0.208 286.6)
XYZxyz(16.1508, 9.2218, 55.5613)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38C8 #A5C838
analogous
#385DC8 #5B38C8 #A338C8
triadic
#5B38C8 #C85B38 #38C85B
tetradic
#5B38C8 #C8385D #A5C838 #38C8A3
square
#5B38C8 #C8385D #A5C838 #38C8A3
split-complementary
#5B38C8 #C8A338 #5DC838
monochromatic
#2F1D69 #452A99 #5B38C8 #8368D5 #AA98E3

Accessibility & contrast

On white

7.38
#5B38C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5B38C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B38C8
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38C8#FFFFFF#000000##FFFFFF
##5B38C81.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#0051C5
Tritanopia (blue-blind)
#2C5F7D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b38c8;
/* rgb */ color: rgb(91, 56, 200);
/* oklch */ color: oklch(47.4% 0.208 286.6);
Tailwind
colors: {
  custom: {
    50: '#9472da',
    500: '#5b38c8',
    950: '#000000',
  },
}
SCSS
$custom: #5b38c8;
$custom-light: #9472da;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38c8",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 254.583,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47429,
    "c": 0.20848,
    "h": 286.6
  },
  "luminance": 0.09223
}

Semantic roles & 50–950 ramp

primary
#5B38C8
secondary
#BECE8E
accent
#E048BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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