#5A4ABC#5A4ABC

#5A4ABC is a mid, vivid blue. Relative luminance 0.107; OKLCH L 49.0% C 0.172 H 284.5°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5A4ABC
RGBrgb(90, 74, 188)
HSLhsl(248, 46%, 51%)
HSVhsv(248, 61%, 74%)
CMYKcmyk(52.1%, 60.6%, 0%, 26.3%)
CIE-LABlab(39.07, 37.19, -58.11)
CIE-LCHlch(39.07, 68.99, 302.62°)
OKLaboklab(49.03% 0.043 -0.1665)
OKLCHoklch(49.03% 0.172 284.5)
XYZxyz(15.7396, 10.7012, 48.8034)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4ABC #ACBC4A
analogous
#4A73BC #5A4ABC #934ABC
triadic
#5A4ABC #BC5A4A #4ABC5A
tetradic
#5A4ABC #BC4A73 #ACBC4A #4ABC93
square
#5A4ABC #BC4A73 #ACBC4A #4ABC93
split-complementary
#5A4ABC #BC934A #73BC4A
monochromatic
#2F2666 #433693 #5A4ABC #8377CD #ABA3DD

Accessibility & contrast

On white

6.69
#5A4ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5A4ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4ABC
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4ABC#FFFFFF#000000##FFFFFF
##5A4ABC1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#33657C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a4abc;
/* rgb */ color: rgb(90, 74, 188);
/* oklch */ color: oklch(49.0% 0.172 284.5);
Tailwind
colors: {
  custom: {
    50: '#917dd1',
    500: '#5a4abc',
    950: '#000000',
  },
}
SCSS
$custom: #5a4abc;
$custom-light: #917dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4abc",
  "rgb": {
    "r": 90,
    "g": 74,
    "b": 188
  },
  "hsl": {
    "h": 248.421,
    "s": 45.968,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49027,
    "c": 0.17197,
    "h": 284.5
  },
  "luminance": 0.10702
}

Semantic roles & 50–950 ramp

primary
#5A4ABC
secondary
#C3CA98
accent
#D652C3
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5A4ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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