#5D39BB#5D39BB

#5D39BB is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.192 H 289.5°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5D39BB
RGBrgb(93, 57, 187)
HSLhsl(257, 53%, 48%)
HSVhsv(257, 70%, 73%)
CMYKcmyk(50.3%, 69.5%, 0%, 26.7%)
CIE-LABlab(35.68, 47.13, -63.04)
CIE-LCHlch(35.68, 78.71, 306.78°)
OKLaboklab(46.61% 0.0641 -0.1809)
OKLCHoklch(46.61% 0.192 289.5)
XYZxyz(14.9444, 8.8406, 47.9231)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D39BB #97BB39
analogous
#3956BB #5D39BB #9E39BB
triadic
#5D39BB #BB5D39 #39BB5D
tetradic
#5D39BB #BB3956 #97BB39 #39BB9E
square
#5D39BB #BB3956 #97BB39 #39BB9E
split-complementary
#5D39BB #BB9E39 #56BB39
monochromatic
#2E1C5D #462B8C #5D39BB #8062CF #A691DD

Accessibility & contrast

On white

7.59
#5D39BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5D39BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D39BB
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D39BB#FFFFFF#000000##FFFFFF
##5D39BB1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#3C5A76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d39bb;
/* rgb */ color: rgb(93, 57, 187);
/* oklch */ color: oklch(46.6% 0.192 289.5);
Tailwind
colors: {
  custom: {
    50: '#9372d0',
    500: '#5d39bb',
    950: '#000000',
  },
}
SCSS
$custom: #5d39bb;
$custom-light: #9372d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d39bb",
  "rgb": {
    "r": 93,
    "g": 57,
    "b": 187
  },
  "hsl": {
    "h": 256.615,
    "s": 53.279,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46611,
    "c": 0.19191,
    "h": 289.5
  },
  "luminance": 0.08841
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D39BB

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

Preview Lab → · Contrast checker → · Palette generator →

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