#5D39B3#5D39B3

#5D39B3 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.9% C 0.182 H 291.0°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5D39B3
RGBrgb(93, 57, 179)
HSLhsl(258, 52%, 46%)
HSVhsv(258, 68%, 70%)
CMYKcmyk(48%, 68.2%, 0%, 29.8%)
CIE-LABlab(35.02, 44.85, -59.38)
CIE-LCHlch(35.02, 74.42, 307.06°)
OKLaboklab(45.94% 0.0654 -0.1702)
OKLCHoklch(45.94% 0.182 291)
XYZxyz(14.1117, 8.5076, 43.5377)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D39B3 #8FB339
analogous
#3952B3 #5D39B3 #9A39B3
triadic
#5D39B3 #B35D39 #39B35D
tetradic
#5D39B3 #B33952 #8FB339 #39B39A
square
#5D39B3 #B33952 #8FB339 #39B39A
split-complementary
#5D39B3 #B39A39 #52B339
monochromatic
#2D1B56 #452A85 #5D39B3 #7E5ECC #A38CDA

Accessibility & contrast

On white

7.77
#5D39B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5D39B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D39B3
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D39B3#FFFFFF#000000##FFFFFF
##5D39B31.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#425771
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d39b3;
/* rgb */ color: rgb(93, 57, 179);
/* oklch */ color: oklch(45.9% 0.182 291.0);
Tailwind
colors: {
  custom: {
    50: '#9272cb',
    500: '#5d39b3',
    950: '#000000',
  },
}
SCSS
$custom: #5d39b3;
$custom-light: #9272cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d39b3",
  "rgb": {
    "r": 93,
    "g": 57,
    "b": 179
  },
  "hsl": {
    "h": 257.705,
    "s": 51.695,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45936,
    "c": 0.1823,
    "h": 291
  },
  "luminance": 0.08508
}

Semantic roles & 50–950 ramp

primary
#5D39B3
secondary
#B1C583
accent
#DB4DB1
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D39B3

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

Preview Lab → · Contrast checker → · Palette generator →

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