#5A4EDA#5A4EDA

#5A4EDA is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.1% C 0.206 H 280.4°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5A4EDA
RGBrgb(90, 78, 218)
HSLhsl(245, 65%, 58%)
HSVhsv(245, 64%, 85%)
CMYKcmyk(58.7%, 64.2%, 0%, 14.5%)
CIE-LABlab(42.28, 44.14, -70.24)
CIE-LCHlch(42.28, 82.96, 302.15°)
OKLaboklab(52.09% 0.037 -0.2021)
OKLCHoklch(52.09% 0.206 280.4)
XYZxyz(19.5917, 12.6830, 67.7317)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4EDA #CEDA4E
analogous
#4E88DA #5A4EDA #A04EDA
triadic
#5A4EDA #DA5A4E #4EDA5A
tetradic
#5A4EDA #DA4E88 #CEDA4E #4EDAA0
square
#5A4EDA #DA4E88 #CEDA4E #4EDAA0
split-complementary
#5A4EDA #DAA04E #88DA4E
monochromatic
#281E90 #3629C2 #5A4EDA #8981E5 #B8B3EF

Accessibility & contrast

On white

5.94
#5A4EDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5A4EDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4EDA
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4EDA#FFFFFF#000000##FFFFFF
##5A4EDA1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DE
Deuteranopia (green-blind)
#005ED7
Tritanopia (blue-blind)
#00718D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a4eda;
/* rgb */ color: rgb(90, 78, 218);
/* oklch */ color: oklch(52.1% 0.206 280.4);
Tailwind
colors: {
  custom: {
    50: '#9580e6',
    500: '#5a4eda',
    950: '#000000',
  },
}
SCSS
$custom: #5a4eda;
$custom-light: #9580e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4eda",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 218
  },
  "hsl": {
    "h": 245.143,
    "s": 65.421,
    "l": 58.039
  },
  "oklch": {
    "l": 0.52093,
    "c": 0.20551,
    "h": 280.4
  },
  "luminance": 0.12684
}

Semantic roles & 50–950 ramp

primary
#5A4EDA
secondary
#D9DEA6
accent
#E83FDA
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5A4EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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