#5D397D#5D397D

#5D397D is a dark, moderate violet. Relative luminance 0.067; OKLCH L 41.9% C 0.114 H 306.6°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5D397D
RGBrgb(93, 57, 125)
HSLhsl(272, 37%, 36%)
HSVhsv(272, 54%, 49%)
CMYKcmyk(25.6%, 54.4%, 0%, 51%)
CIE-LABlab(31.19, 30.06, -32.68)
CIE-LCHlch(31.19, 44.40, 312.61°)
OKLaboklab(41.94% 0.0681 -0.0917)
OKLCHoklch(41.94% 0.114 306.6)
XYZxyz(9.6782, 6.7342, 20.1880)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D397D #597D39
analogous
#3B397D #5D397D #7D397B
triadic
#5D397D #7D5D39 #397D5D
tetradic
#5D397D #7D3B39 #597D39 #397B7D
square
#5D397D #7D3B39 #597D39 #397B7D
split-complementary
#5D397D #7B7D39 #397D3B
monochromatic
#1E1329 #3E2653 #5D397D #7C4CA7 #9A72BF

Accessibility & contrast

On white

8.95
#5D397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5D397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D397D
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D397D#FFFFFF#000000##FFFFFF
##5D397D1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487F
Deuteranopia (green-blind)
#2F4A7B
Tritanopia (blue-blind)
#584555
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d397d;
/* rgb */ color: rgb(93, 57, 125);
/* oklch */ color: oklch(41.9% 0.114 306.6);
Tailwind
colors: {
  custom: {
    50: '#8d71a3',
    500: '#5d397d',
    950: '#000000',
  },
}
SCSS
$custom: #5d397d;
$custom-light: #8d71a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d397d",
  "rgb": {
    "r": 93,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 271.765,
    "s": 37.363,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41939,
    "c": 0.11422,
    "h": 306.6
  },
  "luminance": 0.06734
}

Semantic roles & 50–950 ramp

primary
#5D397D
secondary
#87A86A
accent
#CD5A91
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5D397D

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

Preview Lab → · Contrast checker → · Palette generator →

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