#5D4E97#5D4E97

#5D4E97 is a mid, moderate violet. Relative luminance 0.100; OKLCH L 47.4% C 0.115 H 290.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#5D4E97
RGBrgb(93, 78, 151)
HSLhsl(252, 32%, 45%)
HSVhsv(252, 48%, 59%)
CMYKcmyk(38.4%, 48.3%, 0%, 40.8%)
CIE-LABlab(37.86, 24.28, -38.04)
CIE-LCHlch(37.86, 45.13, 302.55°)
OKLaboklab(47.41% 0.0408 -0.1074)
OKLCHoklch(47.41% 0.115 290.8)
XYZxyz(12.8230, 10.0100, 30.5287)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4E97 #88974E
analogous
#4E6397 #5D4E97 #824E97
triadic
#5D4E97 #975D4E #4E975D
tetradic
#5D4E97 #974E63 #88974E #4E9782
square
#5D4E97 #974E63 #88974E #4E9782
split-complementary
#5D4E97 #97824E #63974E
monochromatic
#2B2446 #44396F #5D4E97 #7C6EB4 #A196C9

Accessibility & contrast

On white

7.00
#5D4E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5D4E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D4E97
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4E97#FFFFFF#000000##FFFFFF
##5D4E971.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335A9A
Deuteranopia (green-blind)
#355895
Tritanopia (blue-blind)
#4E5C6B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d4e97;
/* rgb */ color: rgb(93, 78, 151);
/* oklch */ color: oklch(47.4% 0.115 290.8);
Tailwind
colors: {
  custom: {
    50: '#8e80b6',
    500: '#5d4e97',
    950: '#000000',
  },
}
SCSS
$custom: #5d4e97;
$custom-light: #8e80b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4e97",
  "rgb": {
    "r": 93,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 252.329,
    "s": 31.878,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4741,
    "c": 0.11493,
    "h": 290.8
  },
  "luminance": 0.1001
}

Semantic roles & 50–950 ramp

primary
#5D4E97
secondary
#ADB68B
accent
#C860B3
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A11
muted
#7D7C80

Preview Lab

Preview with #5D4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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