#5D398E#5D398E

#5D398E is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.1% C 0.136 H 300.3°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5D398E
RGBrgb(93, 57, 142)
HSLhsl(265, 43%, 39%)
HSVhsv(265, 60%, 56%)
CMYKcmyk(34.5%, 59.9%, 0%, 44.3%)
CIE-LABlab(32.27, 34.54, -41.49)
CIE-LCHlch(32.27, 53.99, 309.78°)
OKLaboklab(43.08% 0.0687 -0.1176)
OKLCHoklch(43.08% 0.136 300.3)
XYZxyz(10.8586, 7.2063, 26.4048)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D398E #6A8E39
analogous
#393F8E #5D398E #88398E
triadic
#5D398E #8E5D39 #398E5D
tetradic
#5D398E #8E393F #6A8E39 #398E88
square
#5D398E #8E393F #6A8E39 #398E88
split-complementary
#5D398E #8E8839 #3F8E39
monochromatic
#241637 #402762 #5D398E #7A4DB7 #9B78C9

Accessibility & contrast

On white

8.60
#5D398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5D398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D398E
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D398E#FFFFFF#000000##FFFFFF
##5D398E1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4C91
Deuteranopia (green-blind)
#1F4B8C
Tritanopia (blue-blind)
#534B5E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5d398e;
/* rgb */ color: rgb(93, 57, 142);
/* oklch */ color: oklch(43.1% 0.136 300.3);
Tailwind
colors: {
  custom: {
    50: '#8e71b0',
    500: '#5d398e',
    950: '#000000',
  },
}
SCSS
$custom: #5d398e;
$custom-light: #8e71b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d398e",
  "rgb": {
    "r": 93,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 265.412,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4308,
    "c": 0.13615,
    "h": 300.3
  },
  "luminance": 0.07206
}

Semantic roles & 50–950 ramp

primary
#5D398E
secondary
#96B271
accent
#D2559D
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0D0810
muted
#7D7B7F

Preview Lab

Preview with #5D398E

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

Preview Lab → · Contrast checker → · Palette generator →

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