#5A4EAF#5A4EAF

#5A4EAF is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.8% C 0.149 H 285.1°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5A4EAF
RGBrgb(90, 78, 175)
HSLhsl(247, 38%, 50%)
HSVhsv(247, 55%, 69%)
CMYKcmyk(48.6%, 55.4%, 0%, 31.4%)
CIE-LABlab(39.10, 30.75, -50.41)
CIE-LCHlch(39.10, 59.05, 301.38°)
OKLaboklab(48.76% 0.0387 -0.1438)
OKLCHoklch(48.76% 0.149 285.1)
XYZxyz(14.6764, 10.7169, 41.8444)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4EAF #A3AF4E
analogous
#4E72AF #5A4EAF #8B4EAF
triadic
#5A4EAF #AF5A4E #4EAF5A
tetradic
#5A4EAF #AF4E72 #A3AF4E #4EAF8B
square
#5A4EAF #AF4E72 #A3AF4E #4EAF8B
split-complementary
#5A4EAF #AF8B4E #72AF4E
monochromatic
#2E285A #443B85 #5A4EAF #8178C3 #A8A2D6

Accessibility & contrast

On white

6.68
#5A4EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A4EAF
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4EAF#FFFFFF#000000##FFFFFF
##5A4EAF1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165FB2
Deuteranopia (green-blind)
#1159AD
Tritanopia (blue-blind)
#3C6477
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a4eaf;
/* rgb */ color: rgb(90, 78, 175);
/* oklch */ color: oklch(48.8% 0.149 285.1);
Tailwind
colors: {
  custom: {
    50: '#8f80c7',
    500: '#5a4eaf',
    950: '#000000',
  },
}
SCSS
$custom: #5a4eaf;
$custom-light: #8f80c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4eaf",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 247.423,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48755,
    "c": 0.14896,
    "h": 285.1
  },
  "luminance": 0.10718
}

Semantic roles & 50–950 ramp

primary
#5A4EAF
secondary
#BDC396
accent
#CE5AC0
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5A4EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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