#5A4BC5#5A4BC5

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

Color values

HEX#5A4BC5
RGBrgb(90, 75, 197)
HSLhsl(247, 51%, 53%)
HSVhsv(247, 62%, 77%)
CMYKcmyk(54.3%, 61.9%, 0%, 22.7%)
CIE-LABlab(39.98, 39.37, -61.89)
CIE-LCHlch(39.98, 73.36, 302.46°)
OKLaboklab(49.9% 0.0415 -0.1776)
OKLCHoklch(49.9% 0.182 283.2)
XYZxyz(16.8075, 11.2360, 54.0956)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BC5 #B6C54B
analogous
#4B79C5 #5A4BC5 #974BC5
triadic
#5A4BC5 #C55A4B #4BC55A
tetradic
#5A4BC5 #C54B79 #B6C54B #4BC597
square
#5A4BC5 #C54B79 #B6C54B #4BC597
split-complementary
#5A4BC5 #C5974B #79C54B
monochromatic
#2E2471 #41339F #5A4BC5 #8479D4 #AFA8E3

Accessibility & contrast

On white

6.47
#5A4BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5A4BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BC5
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BC5#FFFFFF#000000##FFFFFF
##5A4BC51.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#005AC3
Tritanopia (blue-blind)
#2A6981
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a4bc5;
/* rgb */ color: rgb(90, 75, 197);
/* oklch */ color: oklch(49.9% 0.182 283.2);
Tailwind
colors: {
  custom: {
    50: '#927ed7',
    500: '#5a4bc5',
    950: '#000000',
  },
}
SCSS
$custom: #5a4bc5;
$custom-light: #927ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4bc5",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 197
  },
  "hsl": {
    "h": 247.377,
    "s": 51.261,
    "l": 53.333
  },
  "oklch": {
    "l": 0.499,
    "c": 0.18241,
    "h": 283.2
  },
  "luminance": 0.11237
}

Semantic roles & 50–950 ramp

primary
#5A4BC5
secondary
#CAD09C
accent
#DB4DC9
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5A4BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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