#5A4FA4#5A4FA4

#5A4FA4 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.2% C 0.132 H 286.2°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#5A4FA4
RGBrgb(90, 79, 164)
HSLhsl(248, 35%, 48%)
HSVhsv(248, 52%, 64%)
CMYKcmyk(45.1%, 51.8%, 0%, 35.7%)
CIE-LABlab(38.63, 26.76, -44.63)
CIE-LCHlch(38.63, 52.03, 300.94°)
OKLaboklab(48.18% 0.0369 -0.1268)
OKLCHoklch(48.18% 0.132 286.2)
XYZxyz(13.7113, 10.4454, 36.4085)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FA4 #99A44F
analogous
#4F6EA4 #5A4FA4 #854FA4
triadic
#5A4FA4 #A45A4F #4FA45A
tetradic
#5A4FA4 #A44F6E #99A44F #4FA485
square
#5A4FA4 #A44F6E #99A44F #4FA485
split-complementary
#5A4FA4 #A4854F #6EA44F
monochromatic
#2D2751 #433B7B #5A4FA4 #7D74BC #A49DD0

Accessibility & contrast

On white

6.80
#5A4FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5A4FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FA4
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FA4#FFFFFF#000000##FFFFFF
##5A4FA41.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295DA7
Deuteranopia (green-blind)
#2759A2
Tritanopia (blue-blind)
#436172
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a4fa4;
/* rgb */ color: rgb(90, 79, 164);
/* oklch */ color: oklch(48.2% 0.132 286.2);
Tailwind
colors: {
  custom: {
    50: '#8d80bf',
    500: '#5a4fa4',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fa4;
$custom-light: #8d80bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fa4",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 164
  },
  "hsl": {
    "h": 247.765,
    "s": 34.979,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48175,
    "c": 0.13211,
    "h": 286.2
  },
  "luminance": 0.10446
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A4FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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