#5A4E9F#5A4E9F

#5A4E9F is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.7% C 0.126 H 287.4°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5A4E9F
RGBrgb(90, 78, 159)
HSLhsl(249, 34%, 46%)
HSVhsv(249, 51%, 62%)
CMYKcmyk(43.4%, 50.9%, 0%, 37.6%)
CIE-LABlab(38.07, 25.87, -42.54)
CIE-LCHlch(38.07, 49.79, 301.30°)
OKLaboklab(47.65% 0.0378 -0.1207)
OKLCHoklch(47.65% 0.126 287.4)
XYZxyz(13.1971, 10.1252, 34.0532)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E9F #939F4E
analogous
#4E6B9F #5A4E9F #834E9F
triadic
#5A4E9F #9F5A4E #4E9F5A
tetradic
#5A4E9F #9F4E6B #939F4E #4E9F83
square
#5A4E9F #9F4E6B #939F4E #4E9F83
split-complementary
#5A4E9F #9F834E #6B9F4E
monochromatic
#2C264D #433A76 #5A4E9F #7C71B9 #A29ACD

Accessibility & contrast

On white

6.94
#5A4E9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5A4E9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4E9F
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E9F#FFFFFF#000000##FFFFFF
##5A4E9F1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5CA2
Deuteranopia (green-blind)
#2B579D
Tritanopia (blue-blind)
#465F6F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a4e9f;
/* rgb */ color: rgb(90, 78, 159);
/* oklch */ color: oklch(47.7% 0.126 287.4);
Tailwind
colors: {
  custom: {
    50: '#8d7fbc',
    500: '#5a4e9f',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e9f;
$custom-light: #8d7fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e9f",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 159
  },
  "hsl": {
    "h": 248.889,
    "s": 34.177,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47653,
    "c": 0.12649,
    "h": 287.4
  },
  "luminance": 0.10126
}

Semantic roles & 50–950 ramp

primary
#5A4E9F
secondary
#B4BA8F
accent
#CA5EBA
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #5A4E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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