#5B38D2#5B38D2

#5B38D2 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.3% C 0.220 H 285.1°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5B38D2
RGBrgb(91, 56, 210)
HSLhsl(254, 63%, 52%)
HSVhsv(254, 73%, 82%)
CMYKcmyk(56.7%, 73.3%, 0%, 17.6%)
CIE-LABlab(37.31, 53.90, -73.79)
CIE-LCHlch(37.31, 91.38, 306.15°)
OKLaboklab(48.34% 0.0573 -0.2125)
OKLCHoklch(48.34% 0.22 285.1)
XYZxyz(17.3579, 9.7046, 61.9188)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38D2 #AFD238
analogous
#3862D2 #5B38D2 #A838D2
triadic
#5B38D2 #D25B38 #38D25B
tetradic
#5B38D2 #D23862 #AFD238 #38D2A8
square
#5B38D2 #D23862 #AFD238 #38D2A8
split-complementary
#5B38D2 #D2A838 #62D238
monochromatic
#2F1A75 #4326A7 #5B38D2 #846ADD #AD9CE9

Accessibility & contrast

On white

7.14
#5B38D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5B38D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B38D2
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38D2#FFFFFF#000000##FFFFFF
##5B38D21.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD6
Deuteranopia (green-blind)
#0053CF
Tritanopia (blue-blind)
#1E6382
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b38d2;
/* rgb */ color: rgb(91, 56, 210);
/* oklch */ color: oklch(48.3% 0.220 285.1);
Tailwind
colors: {
  custom: {
    50: '#9672e1',
    500: '#5b38d2',
    950: '#000000',
  },
}
SCSS
$custom: #5b38d2;
$custom-light: #9672e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38d2",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 253.636,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48339,
    "c": 0.22006,
    "h": 285.1
  },
  "luminance": 0.09706
}

Semantic roles & 50–950 ramp

primary
#5B38D2
secondary
#C5D591
accent
#E642C1
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0815
muted
#7E7B84

Preview Lab

Preview with #5B38D2

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

Preview Lab → · Contrast checker → · Palette generator →

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