#5A4AC2#5A4AC2

#5A4AC2 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.5% C 0.180 H 283.7°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5A4AC2
RGBrgb(90, 74, 194)
HSLhsl(248, 50%, 53%)
HSVhsv(248, 62%, 76%)
CMYKcmyk(53.6%, 61.9%, 0%, 23.9%)
CIE-LABlab(39.52, 39.04, -60.88)
CIE-LCHlch(39.52, 72.33, 302.67°)
OKLaboklab(49.5% 0.0427 -0.1747)
OKLCHoklch(49.5% 0.18 283.7)
XYZxyz(16.3999, 10.9653, 52.2808)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4AC2 #B2C24A
analogous
#4A76C2 #5A4AC2 #964AC2
triadic
#5A4AC2 #C25A4A #4AC25A
tetradic
#5A4AC2 #C24A76 #B2C24A #4AC296
square
#5A4AC2 #C24A76 #B2C24A #4AC296
split-complementary
#5A4AC2 #C2964A #76C24A
monochromatic
#2E256D #42349B #5A4AC2 #8478D1 #ADA6E1

Accessibility & contrast

On white

6.58
#5A4AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5A4AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4AC2
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4AC2#FFFFFF#000000##FFFFFF
##5A4AC21.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0059C0
Tritanopia (blue-blind)
#2D677F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a4ac2;
/* rgb */ color: rgb(90, 74, 194);
/* oklch */ color: oklch(49.5% 0.180 283.7);
Tailwind
colors: {
  custom: {
    50: '#927dd5',
    500: '#5a4ac2',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ac2;
$custom-light: #927dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ac2",
  "rgb": {
    "r": 90,
    "g": 74,
    "b": 194
  },
  "hsl": {
    "h": 248,
    "s": 49.587,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49497,
    "c": 0.1798,
    "h": 283.7
  },
  "luminance": 0.10966
}

Semantic roles & 50–950 ramp

primary
#5A4AC2
secondary
#C7CE9A
accent
#D94FC7
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5A4AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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