#5B38D7#5B38D7

#5B38D7 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.8% C 0.226 H 284.4°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5B38D7
RGBrgb(91, 56, 215)
HSLhsl(253, 67%, 53%)
HSVhsv(253, 74%, 84%)
CMYKcmyk(57.7%, 74%, 0%, 15.7%)
CIE-LABlab(37.77, 55.33, -75.92)
CIE-LCHlch(37.77, 93.94, 306.08°)
OKLaboklab(48.8% 0.0561 -0.2187)
OKLCHoklch(48.8% 0.226 284.4)
XYZxyz(17.9905, 9.9577, 65.2508)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38D7 #B4D738
analogous
#3864D7 #5B38D7 #AB38D7
triadic
#5B38D7 #D75B38 #38D75B
tetradic
#5B38D7 #D73864 #B4D738 #38D7AB
square
#5B38D7 #D73864 #B4D738 #38D7AB
split-complementary
#5B38D7 #D7AB38 #64D738
monochromatic
#2F197C #4223AF #5B38D7 #856BE1 #AF9EEB

Accessibility & contrast

On white

7.02
#5B38D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5B38D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B38D7
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38D7#FFFFFF#000000##FFFFFF
##5B38D71.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDC
Deuteranopia (green-blind)
#0054D4
Tritanopia (blue-blind)
#146585
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b38d7;
/* rgb */ color: rgb(91, 56, 215);
/* oklch */ color: oklch(48.8% 0.226 284.4);
Tailwind
colors: {
  custom: {
    50: '#9773e5',
    500: '#5b38d7',
    950: '#000000',
  },
}
SCSS
$custom: #5b38d7;
$custom-light: #9773e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38d7",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 253.208,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48802,
    "c": 0.22579,
    "h": 284.4
  },
  "luminance": 0.09959
}

Semantic roles & 50–950 ramp

primary
#5B38D7
secondary
#C9D893
accent
#E93EC4
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B38D7

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

Preview Lab → · Contrast checker → · Palette generator →

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