#5D39B0#5D39B0

#5D39B0 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.7% C 0.179 H 291.6°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5D39B0
RGBrgb(93, 57, 176)
HSLhsl(258, 51%, 46%)
HSVhsv(258, 68%, 69%)
CMYKcmyk(47.2%, 67.6%, 0%, 31%)
CIE-LABlab(34.78, 44.00, -57.99)
CIE-LCHlch(34.78, 72.80, 307.19°)
OKLaboklab(45.69% 0.0659 -0.1661)
OKLCHoklch(45.69% 0.179 291.6)
XYZxyz(13.8116, 8.3875, 41.9571)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D39B0 #8CB039
analogous
#3951B0 #5D39B0 #9839B0
triadic
#5D39B0 #B05D39 #39B05D
tetradic
#5D39B0 #B03951 #8CB039 #39B098
square
#5D39B0 #B03951 #8CB039 #39B098
split-complementary
#5D39B0 #B09839 #51B039
monochromatic
#2C1B54 #452A82 #5D39B0 #7D5CCA #A28AD9

Accessibility & contrast

On white

7.84
#5D39B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5D39B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D39B0
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D39B0#FFFFFF#000000##FFFFFF
##5D39B01.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#004FAE
Tritanopia (blue-blind)
#435670
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d39b0;
/* rgb */ color: rgb(93, 57, 176);
/* oklch */ color: oklch(45.7% 0.179 291.6);
Tailwind
colors: {
  custom: {
    50: '#9272c8',
    500: '#5d39b0',
    950: '#000000',
  },
}
SCSS
$custom: #5d39b0;
$custom-light: #9272c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d39b0",
  "rgb": {
    "r": 93,
    "g": 57,
    "b": 176
  },
  "hsl": {
    "h": 258.151,
    "s": 51.073,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45688,
    "c": 0.17866,
    "h": 291.6
  },
  "luminance": 0.08388
}

Semantic roles & 50–950 ramp

primary
#5D39B0
secondary
#AFC481
accent
#DB4DB0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D39B0

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

Preview Lab → · Contrast checker → · Palette generator →

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