#5B38DB#5B38DB

#5B38DB is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.2% C 0.230 H 283.9°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#5B38DB
RGBrgb(91, 56, 219)
HSLhsl(253, 69%, 54%)
HSVhsv(253, 74%, 86%)
CMYKcmyk(58.4%, 74.4%, 0%, 14.1%)
CIE-LABlab(38.14, 56.47, -77.60)
CIE-LCHlch(38.14, 95.97, 306.04°)
OKLaboklab(49.18% 0.0552 -0.2236)
OKLCHoklch(49.18% 0.23 283.9)
XYZxyz(18.5108, 10.1658, 67.9909)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38DB #B8DB38
analogous
#3867DB #5B38DB #AC38DB
triadic
#5B38DB #DB5B38 #38DB5B
tetradic
#5B38DB #DB3867 #B8DB38 #38DBAC
square
#5B38DB #DB3867 #B8DB38 #38DBAC
split-complementary
#5B38DB #DBAC38 #67DB38
monochromatic
#2E1781 #4121B5 #5B38DB #866CE4 #B0A0EE

Accessibility & contrast

On white

6.92
#5B38DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5B38DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B38DB
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38DB#FFFFFF#000000##FFFFFF
##5B38DB1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FE0
Deuteranopia (green-blind)
#0054D8
Tritanopia (blue-blind)
#066687
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b38db;
/* rgb */ color: rgb(91, 56, 219);
/* oklch */ color: oklch(49.2% 0.230 283.9);
Tailwind
colors: {
  custom: {
    50: '#9773e7',
    500: '#5b38db',
    950: '#000000',
  },
}
SCSS
$custom: #5b38db;
$custom-light: #9773e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38db",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 219
  },
  "hsl": {
    "h": 252.883,
    "s": 69.362,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49176,
    "c": 0.23033,
    "h": 283.9
  },
  "luminance": 0.10167
}

Semantic roles & 50–950 ramp

primary
#5B38DB
secondary
#CBDA95
accent
#EC3CC6
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B38DB

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

Preview Lab → · Contrast checker → · Palette generator →

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