#5D38BB#5D38BB

#5D38BB is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.5% C 0.193 H 289.7°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5D38BB
RGBrgb(93, 56, 187)
HSLhsl(257, 54%, 48%)
HSVhsv(257, 70%, 73%)
CMYKcmyk(50.3%, 70.1%, 0%, 26.7%)
CIE-LABlab(35.48, 47.66, -63.35)
CIE-LCHlch(35.48, 79.28, 306.95°)
OKLaboklab(46.47% 0.065 -0.1818)
OKLCHoklch(46.47% 0.193 289.7)
XYZxyz(14.8954, 8.7427, 47.9067)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38BB #96BB38
analogous
#3854BB #5D38BB #9F38BB
triadic
#5D38BB #BB5D38 #38BB5D
tetradic
#5D38BB #BB3854 #96BB38 #38BB9F
square
#5D38BB #BB3854 #96BB38 #38BB9F
split-complementary
#5D38BB #BB9F38 #54BB38
monochromatic
#2E1C5D #462A8C #5D38BB #8061D0 #A690DE

Accessibility & contrast

On white

7.64
#5D38BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5D38BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D38BB
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38BB#FFFFFF#000000##FFFFFF
##5D38BB1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#3C5A75
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d38bb;
/* rgb */ color: rgb(93, 56, 187);
/* oklch */ color: oklch(46.5% 0.193 289.7);
Tailwind
colors: {
  custom: {
    50: '#9472d0',
    500: '#5d38bb',
    950: '#000000',
  },
}
SCSS
$custom: #5d38bb;
$custom-light: #9472d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38bb",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 256.947,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46474,
    "c": 0.19308,
    "h": 289.7
  },
  "luminance": 0.08743
}

Semantic roles & 50–950 ramp

primary
#5D38BB
secondary
#B6C886
accent
#DD4BB4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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