#5D4EA2#5D4EA2

#5D4EA2 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.1% C 0.131 H 288.7°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5D4EA2
RGBrgb(93, 78, 162)
HSLhsl(251, 35%, 47%)
HSVhsv(251, 52%, 64%)
CMYKcmyk(42.6%, 51.9%, 0%, 36.5%)
CIE-LABlab(38.52, 27.52, -43.59)
CIE-LCHlch(38.52, 51.55, 302.26°)
OKLaboklab(48.12% 0.0419 -0.1237)
OKLCHoklch(48.12% 0.131 288.7)
XYZxyz(13.7584, 10.3841, 35.4548)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4EA2 #93A24E
analogous
#4E69A2 #5D4EA2 #874EA2
triadic
#5D4EA2 #A25D4E #4EA25D
tetradic
#5D4EA2 #A24E69 #93A24E #4EA287
square
#5D4EA2 #A24E69 #93A24E #4EA287
split-complementary
#5D4EA2 #A2874E #69A24E
monochromatic
#2E264F #453A79 #5D4EA2 #7F72BB #A59BCF

Accessibility & contrast

On white

6.82
#5D4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5D4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D4EA2
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4EA2#FFFFFF#000000##FFFFFF
##5D4EA21.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5DA5
Deuteranopia (green-blind)
#2A59A0
Tritanopia (blue-blind)
#495F70
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d4ea2;
/* rgb */ color: rgb(93, 78, 162);
/* oklch */ color: oklch(48.1% 0.131 288.7);
Tailwind
colors: {
  custom: {
    50: '#8f80be',
    500: '#5d4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #5d4ea2;
$custom-light: #8f80be;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4ea2",
  "rgb": {
    "r": 93,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 250.714,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48121,
    "c": 0.13062,
    "h": 288.7
  },
  "luminance": 0.10385
}

Semantic roles & 50–950 ramp

primary
#5D4EA2
secondary
#B4BC90
accent
#CB5DB7
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5D4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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