#5D39AB#5D39AB

#5D39AB is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.3% C 0.173 H 292.7°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5D39AB
RGBrgb(93, 57, 171)
HSLhsl(259, 50%, 45%)
HSVhsv(259, 67%, 67%)
CMYKcmyk(45.6%, 66.7%, 0%, 32.9%)
CIE-LABlab(34.38, 42.59, -55.65)
CIE-LCHlch(34.38, 70.08, 307.42°)
OKLaboklab(45.28% 0.0666 -0.1592)
OKLCHoklch(45.28% 0.173 292.7)
XYZxyz(13.3260, 8.1933, 39.3995)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D39AB #87AB39
analogous
#394EAB #5D39AB #9639AB
triadic
#5D39AB #AB5D39 #39AB5D
tetradic
#5D39AB #AB394E #87AB39 #39AB96
square
#5D39AB #AB394E #87AB39 #39AB96
split-complementary
#5D39AB #AB9639 #4EAB39
monochromatic
#2B1A4F #442A7D #5D39AB #7C59C8 #A087D7

Accessibility & contrast

On white

7.96
#5D39AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5D39AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D39AB
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D39AB#FFFFFF#000000##FFFFFF
##5D39AB1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#46546D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d39ab;
/* rgb */ color: rgb(93, 57, 171);
/* oklch */ color: oklch(45.3% 0.173 292.7);
Tailwind
colors: {
  custom: {
    50: '#9172c5',
    500: '#5d39ab',
    950: '#000000',
  },
}
SCSS
$custom: #5d39ab;
$custom-light: #9172c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d39ab",
  "rgb": {
    "r": 93,
    "g": 57,
    "b": 171
  },
  "hsl": {
    "h": 258.947,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4528,
    "c": 0.17255,
    "h": 292.7
  },
  "luminance": 0.08194
}

Semantic roles & 50–950 ramp

primary
#5D39AB
secondary
#ACC17F
accent
#DA4EAE
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5D39AB

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

Preview Lab → · Contrast checker → · Palette generator →

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