#5D4FA5#5D4FA5

#5D4FA5 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.5% C 0.133 H 287.9°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5D4FA5
RGBrgb(93, 79, 165)
HSLhsl(250, 35%, 48%)
HSVhsv(250, 52%, 65%)
CMYKcmyk(43.6%, 52.1%, 0%, 35.3%)
CIE-LABlab(38.96, 27.79, -44.68)
CIE-LCHlch(38.96, 52.62, 301.88°)
OKLaboklab(48.51% 0.0409 -0.1269)
OKLCHoklch(48.51% 0.133 287.9)
XYZxyz(14.0998, 10.6352, 36.8999)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4FA5 #97A54F
analogous
#4F6CA5 #5D4FA5 #884FA5
triadic
#5D4FA5 #A55D4F #4FA55D
tetradic
#5D4FA5 #A54F6C #97A54F #4FA588
square
#5D4FA5 #A54F6C #97A54F #4FA588
split-complementary
#5D4FA5 #A5884F #6CA54F
monochromatic
#2E2752 #463B7C #5D4FA5 #8075BD #A69ED1

Accessibility & contrast

On white

6.72
#5D4FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5D4FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D4FA5
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4FA5#FFFFFF#000000##FFFFFF
##5D4FA51.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295EA8
Deuteranopia (green-blind)
#295AA3
Tritanopia (blue-blind)
#486172
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5d4fa5;
/* rgb */ color: rgb(93, 79, 165);
/* oklch */ color: oklch(48.5% 0.133 287.9);
Tailwind
colors: {
  custom: {
    50: '#8f80c0',
    500: '#5d4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #5d4fa5;
$custom-light: #8f80c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4fa5",
  "rgb": {
    "r": 93,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 249.767,
    "s": 35.246,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48507,
    "c": 0.13333,
    "h": 287.9
  },
  "luminance": 0.10636
}

Semantic roles & 50–950 ramp

primary
#5D4FA5
secondary
#B6BD92
accent
#CB5DB9
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5D4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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