#5D397E#5D397E

#5D397E is a dark, moderate violet. Relative luminance 0.068; OKLCH L 42.0% C 0.116 H 306.1°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5D397E
RGBrgb(93, 57, 126)
HSLhsl(271, 38%, 36%)
HSVhsv(271, 55%, 49%)
CMYKcmyk(26.2%, 54.8%, 0%, 50.6%)
CIE-LABlab(31.25, 30.32, -33.21)
CIE-LCHlch(31.25, 44.96, 312.40°)
OKLaboklab(42% 0.0681 -0.0933)
OKLCHoklch(42% 0.116 306.1)
XYZxyz(9.7424, 6.7598, 20.5262)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D397E #5A7E39
analogous
#3A397E #5D397E #7E397C
triadic
#5D397E #7E5D39 #397E5D
tetradic
#5D397E #7E3A39 #5A7E39 #397C7E
square
#5D397E #7E3A39 #5A7E39 #397C7E
split-complementary
#5D397E #7C7E39 #397E3A
monochromatic
#1F132A #3E2654 #5D397E #7C4CA8 #9A72BF

Accessibility & contrast

On white

8.93
#5D397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D397E
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D397E#FFFFFF#000000##FFFFFF
##5D397E1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234880
Deuteranopia (green-blind)
#2E4A7C
Tritanopia (blue-blind)
#584556
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d397e;
/* rgb */ color: rgb(93, 57, 126);
/* oklch */ color: oklch(42.0% 0.116 306.1);
Tailwind
colors: {
  custom: {
    50: '#8d71a4',
    500: '#5d397e',
    950: '#000000',
  },
}
SCSS
$custom: #5d397e;
$custom-light: #8d71a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d397e",
  "rgb": {
    "r": 93,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 271.304,
    "s": 37.705,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42003,
    "c": 0.11552,
    "h": 306.1
  },
  "luminance": 0.0676
}

Semantic roles & 50–950 ramp

primary
#5D397E
secondary
#88A86A
accent
#CE5A91
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5D397E

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

Preview Lab → · Contrast checker → · Palette generator →

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