#5A4FA6#5A4FA6

#5A4FA6 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.3% C 0.135 H 286.0°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#5A4FA6
RGBrgb(90, 79, 166)
HSLhsl(248, 36%, 48%)
HSVhsv(248, 52%, 65%)
CMYKcmyk(45.8%, 52.4%, 0%, 34.9%)
CIE-LABlab(38.76, 27.37, -45.62)
CIE-LCHlch(38.76, 53.20, 300.96°)
OKLaboklab(48.31% 0.0371 -0.1297)
OKLCHoklch(48.31% 0.135 286)
XYZxyz(13.8934, 10.5182, 37.3672)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FA6 #9BA64F
analogous
#4F6FA6 #5A4FA6 #854FA6
triadic
#5A4FA6 #A65A4F #4FA65A
tetradic
#5A4FA6 #A64F6F #9BA64F #4FA685
square
#5A4FA6 #A64F6F #9BA64F #4FA685
split-complementary
#5A4FA6 #A6854F #6FA64F
monochromatic
#2D2853 #443B7D #5A4FA6 #7E75BD #A59ED1

Accessibility & contrast

On white

6.77
#5A4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A4FA6
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FA6#FFFFFF#000000##FFFFFF
##5A4FA61.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265EA9
Deuteranopia (green-blind)
#2459A4
Tritanopia (blue-blind)
#426273
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a4fa6;
/* rgb */ color: rgb(90, 79, 166);
/* oklch */ color: oklch(48.3% 0.135 286.0);
Tailwind
colors: {
  custom: {
    50: '#8d80c1',
    500: '#5a4fa6',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fa6;
$custom-light: #8d80c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fa6",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 247.586,
    "s": 35.51,
    "l": 48.039
  },
  "oklch": {
    "l": 0.48311,
    "c": 0.13494,
    "h": 286
  },
  "luminance": 0.10519
}

Semantic roles & 50–950 ramp

primary
#5A4FA6
secondary
#B8BE93
accent
#CC5CBD
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5A4FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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