#5D4E7C#5D4E7C

#5D4E7C is a mid, moderate violet. Relative luminance 0.092; OKLCH L 45.9% C 0.075 H 298.4°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5D4E7C
RGBrgb(93, 78, 124)
HSLhsl(260, 23%, 40%)
HSVhsv(260, 37%, 49%)
CMYKcmyk(25%, 37.1%, 0%, 51.4%)
CIE-LABlab(36.43, 16.77, -23.82)
CIE-LCHlch(36.43, 29.13, 305.15°)
OKLaboklab(45.86% 0.0357 -0.0661)
OKLCHoklch(45.86% 0.075 298.4)
XYZxyz(10.8759, 9.2311, 20.2737)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4E7C #6D7C4E
analogous
#4E567C #5D4E7C #744E7C
triadic
#5D4E7C #7C5D4E #4E7C5D
tetradic
#5D4E7C #7C4E56 #6D7C4E #4E7C74
square
#5D4E7C #7C4E56 #6D7C4E #4E7C74
split-complementary
#5D4E7C #7C744E #567C4E
monochromatic
#251F31 #413656 #5D4E7C #7A67A0 #9B8DB7

Accessibility & contrast

On white

7.38
#5D4E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5D4E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D4E7C
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4E7C#FFFFFF#000000##FFFFFF
##5D4E7C1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43567E
Deuteranopia (green-blind)
#45557B
Tritanopia (blue-blind)
#57565F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5d4e7c;
/* rgb */ color: rgb(93, 78, 124);
/* oklch */ color: oklch(45.9% 0.075 298.4);
Tailwind
colors: {
  custom: {
    50: '#8c7fa2',
    500: '#5d4e7c',
    950: '#000000',
  },
}
SCSS
$custom: #5d4e7c;
$custom-light: #8c7fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4e7c",
  "rgb": {
    "r": 93,
    "g": 78,
    "b": 124
  },
  "hsl": {
    "h": 259.565,
    "s": 22.772,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45855,
    "c": 0.07515,
    "h": 298.4
  },
  "luminance": 0.09231
}

Semantic roles & 50–950 ramp

primary
#5D4E7C
secondary
#99A482
accent
#BF69A3
background
#F8F7FA
surface
#F0EEF3
border
#CBC9CD
text
#0C0A0F
muted
#7D7C7F

Preview Lab

Preview with #5D4E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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