#5B38D9#5B38D9

#5B38D9 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.0% C 0.228 H 284.1°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5B38D9
RGBrgb(91, 56, 217)
HSLhsl(253, 68%, 54%)
HSVhsv(253, 74%, 85%)
CMYKcmyk(58.1%, 74.2%, 0%, 14.9%)
CIE-LABlab(37.95, 55.90, -76.76)
CIE-LCHlch(37.95, 94.96, 306.06°)
OKLaboklab(48.99% 0.0556 -0.2212)
OKLCHoklch(48.99% 0.228 284.1)
XYZxyz(18.2491, 10.0611, 66.6125)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38D9 #B6D938
analogous
#3866D9 #5B38D9 #AB38D9
triadic
#5B38D9 #D95B38 #38D95B
tetradic
#5B38D9 #D93866 #B6D938 #38D9AB
square
#5B38D9 #D93866 #B6D938 #38D9AB
split-complementary
#5B38D9 #D9AB38 #66D938
monochromatic
#2E187E #4122B2 #5B38D9 #856BE3 #B09FED

Accessibility & contrast

On white

6.97
#5B38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5B38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B38D9
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38D9#FFFFFF#000000##FFFFFF
##5B38D91.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDE
Deuteranopia (green-blind)
#0054D6
Tritanopia (blue-blind)
#0E6586
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b38d9;
/* rgb */ color: rgb(91, 56, 217);
/* oklch */ color: oklch(49.0% 0.228 284.1);
Tailwind
colors: {
  custom: {
    50: '#9773e6',
    500: '#5b38d9',
    950: '#000000',
  },
}
SCSS
$custom: #5b38d9;
$custom-light: #9773e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38d9",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 253.043,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48989,
    "c": 0.22806,
    "h": 284.1
  },
  "luminance": 0.10062
}

Semantic roles & 50–950 ramp

primary
#5B38D9
secondary
#CAD994
accent
#EB3DC5
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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