#5D39B5#5D39B5

#5D39B5 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.1% C 0.185 H 290.6°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#5D39B5
RGBrgb(93, 57, 181)
HSLhsl(257, 52%, 47%)
HSVhsv(257, 69%, 71%)
CMYKcmyk(48.6%, 68.5%, 0%, 29%)
CIE-LABlab(35.18, 45.42, -60.30)
CIE-LCHlch(35.18, 75.49, 306.99°)
OKLaboklab(46.1% 0.0651 -0.1729)
OKLCHoklch(46.1% 0.185 290.6)
XYZxyz(14.3154, 8.5891, 44.6107)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D39B5 #91B539
analogous
#3953B5 #5D39B5 #9B39B5
triadic
#5D39B5 #B55D39 #39B55D
tetradic
#5D39B5 #B53953 #91B539 #39B59B
square
#5D39B5 #B53953 #91B539 #39B59B
split-complementary
#5D39B5 #B59B39 #53B539
monochromatic
#2D1C58 #452A86 #5D39B5 #7F5FCD #A48DDB

Accessibility & contrast

On white

7.73
#5D39B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5D39B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D39B5
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D39B5#FFFFFF#000000##FFFFFF
##5D39B51.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#405872
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d39b5;
/* rgb */ color: rgb(93, 57, 181);
/* oklch */ color: oklch(46.1% 0.185 290.6);
Tailwind
colors: {
  custom: {
    50: '#9372cc',
    500: '#5d39b5',
    950: '#000000',
  },
}
SCSS
$custom: #5d39b5;
$custom-light: #9372cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d39b5",
  "rgb": {
    "r": 93,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 257.419,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46103,
    "c": 0.18471,
    "h": 290.6
  },
  "luminance": 0.0859
}

Semantic roles & 50–950 ramp

primary
#5D39B5
secondary
#B3C684
accent
#DC4CB2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D39B5

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

Preview Lab → · Contrast checker → · Palette generator →

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