#5A4BD7#5A4BD7

#5A4BD7 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.4% C 0.205 H 281.2°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#5A4BD7
RGBrgb(90, 75, 215)
HSLhsl(246, 64%, 57%)
HSVhsv(246, 65%, 84%)
CMYKcmyk(58.1%, 65.1%, 0%, 15.7%)
CIE-LABlab(41.39, 44.95, -69.98)
CIE-LCHlch(41.39, 83.17, 302.71°)
OKLaboklab(51.37% 0.0399 -0.2014)
OKLCHoklch(51.37% 0.205 281.2)
XYZxyz(18.9944, 12.1108, 65.6135)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BD7 #C8D74B
analogous
#4B82D7 #5A4BD7 #A04BD7
triadic
#5A4BD7 #D75A4B #4BD75A
tetradic
#5A4BD7 #D74B82 #C8D74B #4BD7A0
square
#5A4BD7 #D74B82 #C8D74B #4BD7A0
split-complementary
#5A4BD7 #D7A04B #82D74B
monochromatic
#2A1E89 #392ABB #5A4BD7 #887DE2 #B6AFED

Accessibility & contrast

On white

6.14
#5A4BD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5A4BD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BD7
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BD7#FFFFFF#000000##FFFFFF
##5A4BD71.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DB
Deuteranopia (green-blind)
#005CD4
Tritanopia (blue-blind)
#056F8A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a4bd7;
/* rgb */ color: rgb(90, 75, 215);
/* oklch */ color: oklch(51.4% 0.205 281.2);
Tailwind
colors: {
  custom: {
    50: '#957ee4',
    500: '#5a4bd7',
    950: '#000000',
  },
}
SCSS
$custom: #5a4bd7;
$custom-light: #957ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4bd7",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 215
  },
  "hsl": {
    "h": 246.429,
    "s": 63.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51372,
    "c": 0.20529,
    "h": 281.2
  },
  "luminance": 0.12112
}

Semantic roles & 50–950 ramp

primary
#5A4BD7
secondary
#D5DBA2
accent
#E741D5
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5A4BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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