#5A4AC7#5A4AC7

#5A4AC7 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.9% C 0.186 H 283.1°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#5A4AC7
RGBrgb(90, 74, 199)
HSLhsl(248, 53%, 54%)
HSVhsv(248, 63%, 78%)
CMYKcmyk(54.8%, 62.8%, 0%, 22%)
CIE-LABlab(39.90, 40.58, -63.17)
CIE-LCHlch(39.90, 75.08, 302.72°)
OKLaboklab(49.9% 0.0423 -0.1814)
OKLCHoklch(49.9% 0.186 283.1)
XYZxyz(16.9709, 11.1937, 55.2881)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4AC7 #B7C74A
analogous
#4A78C7 #5A4AC7 #984AC7
triadic
#5A4AC7 #C75A4A #4AC75A
tetradic
#5A4AC7 #C74A78 #B7C74A #4AC798
square
#5A4AC7 #C74A78 #B7C74A #4AC798
split-complementary
#5A4AC7 #C7984A #78C74A
monochromatic
#2E2473 #4032A2 #5A4AC7 #8579D5 #AFA7E4

Accessibility & contrast

On white

6.48
#5A4AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5A4AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4AC7
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4AC7#FFFFFF#000000##FFFFFF
##5A4AC71.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CB
Deuteranopia (green-blind)
#005AC4
Tritanopia (blue-blind)
#286982
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a4ac7;
/* rgb */ color: rgb(90, 74, 199);
/* oklch */ color: oklch(49.9% 0.186 283.1);
Tailwind
colors: {
  custom: {
    50: '#927dd9',
    500: '#5a4ac7',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ac7;
$custom-light: #927dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ac7",
  "rgb": {
    "r": 90,
    "g": 74,
    "b": 199
  },
  "hsl": {
    "h": 247.68,
    "s": 52.743,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49897,
    "c": 0.18626,
    "h": 283.1
  },
  "luminance": 0.11195
}

Semantic roles & 50–950 ramp

primary
#5A4AC7
secondary
#CAD19C
accent
#DC4CCA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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