#5D4FA6#5D4FA6

#5D4FA6 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.6% C 0.135 H 287.7°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#5D4FA6
RGBrgb(93, 79, 166)
HSLhsl(250, 36%, 48%)
HSVhsv(250, 52%, 65%)
CMYKcmyk(44%, 52.4%, 0%, 34.9%)
CIE-LABlab(39.02, 28.09, -45.18)
CIE-LCHlch(39.02, 53.20, 301.87°)
OKLaboklab(48.57% 0.0409 -0.1284)
OKLCHoklch(48.57% 0.135 287.7)
XYZxyz(14.1912, 10.6718, 37.3811)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4FA6 #98A64F
analogous
#4F6CA6 #5D4FA6 #884FA6
triadic
#5D4FA6 #A65D4F #4FA65D
tetradic
#5D4FA6 #A64F6C #98A64F #4FA688
square
#5D4FA6 #A64F6C #98A64F #4FA688
split-complementary
#5D4FA6 #A6884F #6CA64F
monochromatic
#2F2853 #463B7D #5D4FA6 #8175BD #A79ED1

Accessibility & contrast

On white

6.70
#5D4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5D4FA6
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4FA6#FFFFFF#000000##FFFFFF
##5D4FA61.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285EA9
Deuteranopia (green-blind)
#275AA4
Tritanopia (blue-blind)
#476173
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5d4fa6;
/* rgb */ color: rgb(93, 79, 166);
/* oklch */ color: oklch(48.6% 0.135 287.7);
Tailwind
colors: {
  custom: {
    50: '#8f80c1',
    500: '#5d4fa6',
    950: '#000000',
  },
}
SCSS
$custom: #5d4fa6;
$custom-light: #8f80c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4fa6",
  "rgb": {
    "r": 93,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 249.655,
    "s": 35.51,
    "l": 48.039
  },
  "oklch": {
    "l": 0.48574,
    "c": 0.13474,
    "h": 287.7
  },
  "luminance": 0.10672
}

Semantic roles & 50–950 ramp

primary
#5D4FA6
secondary
#B7BE93
accent
#CC5CBA
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5D4FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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