#5D39B9#5D39B9

#5D39B9 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.4% C 0.190 H 289.9°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5D39B9
RGBrgb(93, 57, 185)
HSLhsl(257, 53%, 47%)
HSVhsv(257, 69%, 73%)
CMYKcmyk(49.7%, 69.2%, 0%, 27.5%)
CIE-LABlab(35.51, 46.56, -62.13)
CIE-LCHlch(35.51, 77.64, 306.85°)
OKLaboklab(46.44% 0.0644 -0.1782)
OKLCHoklch(46.44% 0.19 289.9)
XYZxyz(14.7318, 8.7556, 46.8033)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D39B9 #95B939
analogous
#3955B9 #5D39B9 #9D39B9
triadic
#5D39B9 #B95D39 #39B95D
tetradic
#5D39B9 #B93955 #95B939 #39B99D
square
#5D39B9 #B93955 #95B939 #39B99D
split-complementary
#5D39B9 #B99D39 #55B939
monochromatic
#2E1C5B #452B8A #5D39B9 #8061CE #A590DD

Accessibility & contrast

On white

7.63
#5D39B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D39B9
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D39B9#FFFFFF#000000##FFFFFF
##5D39B91.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0050B6
Tritanopia (blue-blind)
#3E5A74
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d39b9;
/* rgb */ color: rgb(93, 57, 185);
/* oklch */ color: oklch(46.4% 0.190 289.9);
Tailwind
colors: {
  custom: {
    50: '#9372cf',
    500: '#5d39b9',
    950: '#000000',
  },
}
SCSS
$custom: #5d39b9;
$custom-light: #9372cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d39b9",
  "rgb": {
    "r": 93,
    "g": 57,
    "b": 185
  },
  "hsl": {
    "h": 256.875,
    "s": 52.893,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4644,
    "c": 0.18952,
    "h": 289.9
  },
  "luminance": 0.08756
}

Semantic roles & 50–950 ramp

primary
#5D39B9
secondary
#B5C886
accent
#DC4BB4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D39B9

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

Preview Lab → · Contrast checker → · Palette generator →

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