#5D39B4#5D39B4

#5D39B4 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.184 H 290.8°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5D39B4
RGBrgb(93, 57, 180)
HSLhsl(258, 52%, 46%)
HSVhsv(258, 68%, 71%)
CMYKcmyk(48.3%, 68.3%, 0%, 29.4%)
CIE-LABlab(35.10, 45.14, -59.84)
CIE-LCHlch(35.10, 74.96, 307.03°)
OKLaboklab(46.02% 0.0653 -0.1715)
OKLCHoklch(46.02% 0.184 290.8)
XYZxyz(14.2132, 8.5482, 44.0722)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D39B4 #90B439
analogous
#3953B4 #5D39B4 #9B39B4
triadic
#5D39B4 #B45D39 #39B45D
tetradic
#5D39B4 #B43953 #90B439 #39B49B
square
#5D39B4 #B43953 #90B439 #39B49B
split-complementary
#5D39B4 #B49B39 #53B439
monochromatic
#2D1C57 #452A86 #5D39B4 #7E5ECC #A38DDB

Accessibility & contrast

On white

7.75
#5D39B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5D39B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D39B4
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D39B4#FFFFFF#000000##FFFFFF
##5D39B41.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#415872
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d39b4;
/* rgb */ color: rgb(93, 57, 180);
/* oklch */ color: oklch(46.0% 0.184 290.8);
Tailwind
colors: {
  custom: {
    50: '#9372cb',
    500: '#5d39b4',
    950: '#000000',
  },
}
SCSS
$custom: #5d39b4;
$custom-light: #9372cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d39b4",
  "rgb": {
    "r": 93,
    "g": 57,
    "b": 180
  },
  "hsl": {
    "h": 257.561,
    "s": 51.899,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46019,
    "c": 0.18351,
    "h": 290.8
  },
  "luminance": 0.08549
}

Semantic roles & 50–950 ramp

primary
#5D39B4
secondary
#B2C583
accent
#DB4CB2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D39B4

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

Preview Lab → · Contrast checker → · Palette generator →

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