#5A4FA5#5A4FA5

#5A4FA5 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.2% C 0.134 H 286.1°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5A4FA5
RGBrgb(90, 79, 165)
HSLhsl(248, 35%, 48%)
HSVhsv(248, 52%, 65%)
CMYKcmyk(45.5%, 52.1%, 0%, 35.3%)
CIE-LABlab(38.69, 27.06, -45.12)
CIE-LCHlch(38.69, 52.61, 300.95°)
OKLaboklab(48.24% 0.037 -0.1283)
OKLCHoklch(48.24% 0.134 286.1)
XYZxyz(13.8020, 10.4817, 36.8859)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FA5 #9AA54F
analogous
#4F6FA5 #5A4FA5 #854FA5
triadic
#5A4FA5 #A55A4F #4FA55A
tetradic
#5A4FA5 #A54F6F #9AA54F #4FA585
square
#5A4FA5 #A54F6F #9AA54F #4FA585
split-complementary
#5A4FA5 #A5854F #6FA54F
monochromatic
#2D2752 #433B7C #5A4FA5 #7E75BD #A49ED1

Accessibility & contrast

On white

6.78
#5A4FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5A4FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FA5
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FA5#FFFFFF#000000##FFFFFF
##5A4FA51.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285DA8
Deuteranopia (green-blind)
#2659A3
Tritanopia (blue-blind)
#426172
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a4fa5;
/* rgb */ color: rgb(90, 79, 165);
/* oklch */ color: oklch(48.2% 0.134 286.1);
Tailwind
colors: {
  custom: {
    50: '#8d80c0',
    500: '#5a4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fa5;
$custom-light: #8d80c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fa5",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 247.674,
    "s": 35.246,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48243,
    "c": 0.13353,
    "h": 286.1
  },
  "luminance": 0.10482
}

Semantic roles & 50–950 ramp

primary
#5A4FA5
secondary
#B8BD92
accent
#CB5DBD
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0D0A12
muted
#7D7C81

Preview Lab

Preview with #5A4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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