#5D4792#5D4792

#5D4792 is a mid, moderate violet. Relative luminance 0.089; OKLCH L 45.8% C 0.119 H 294.8°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#5D4792
RGBrgb(93, 71, 146)
HSLhsl(258, 35%, 43%)
HSVhsv(258, 51%, 57%)
CMYKcmyk(36.3%, 51.4%, 0%, 42.7%)
CIE-LABlab(35.81, 27.20, -38.28)
CIE-LCHlch(35.81, 46.96, 305.40°)
OKLaboklab(45.78% 0.0499 -0.1081)
OKLCHoklch(45.78% 0.119 294.8)
XYZxyz(11.9544, 8.9087, 28.2783)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4792 #7C9247
analogous
#475792 #5D4792 #824792
triadic
#5D4792 #925D47 #47925D
tetradic
#5D4792 #924757 #7C9247 #479282
square
#5D4792 #924757 #7C9247 #479282
split-complementary
#5D4792 #928247 #579247
monochromatic
#291F40 #433369 #5D4792 #7B63B3 #9E8CC7

Accessibility & contrast

On white

7.55
#5D4792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5D4792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D4792
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4792#FFFFFF#000000##FFFFFF
##5D47921.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5595
Deuteranopia (green-blind)
#2F5390
Tritanopia (blue-blind)
#505665
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d4792;
/* rgb */ color: rgb(93, 71, 146);
/* oklch */ color: oklch(45.8% 0.119 294.8);
Tailwind
colors: {
  custom: {
    50: '#8e7bb2',
    500: '#5d4792',
    950: '#000000',
  },
}
SCSS
$custom: #5d4792;
$custom-light: #8e7bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4792",
  "rgb": {
    "r": 93,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 257.6,
    "s": 34.562,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45776,
    "c": 0.11911,
    "h": 294.8
  },
  "luminance": 0.08909
}

Semantic roles & 50–950 ramp

primary
#5D4792
secondary
#A4B382
accent
#CB5DAB
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #5D4792

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

Preview Lab → · Contrast checker → · Palette generator →

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