#5A4FDB#5A4FDB

#5A4FDB is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.3% C 0.206 H 280.1°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5A4FDB
RGBrgb(90, 79, 219)
HSLhsl(245, 66%, 58%)
HSVhsv(245, 64%, 86%)
CMYKcmyk(58.9%, 63.9%, 0%, 14.1%)
CIE-LABlab(42.58, 43.87, -70.33)
CIE-LCHlch(42.58, 82.89, 301.96°)
OKLaboklab(52.34% 0.0361 -0.2024)
OKLCHoklch(52.34% 0.206 280.1)
XYZxyz(19.7946, 12.8787, 68.4468)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FDB #D0DB4F
analogous
#4F8ADB #5A4FDB #A04FDB
triadic
#5A4FDB #DB5A4F #4FDB5A
tetradic
#5A4FDB #DB4F8A #D0DB4F #4FDBA0
square
#5A4FDB #DB4F8A #D0DB4F #4FDBA0
split-complementary
#5A4FDB #DBA04F #8ADB4F
monochromatic
#271E92 #3428C5 #5A4FDB #8A82E5 #B9B5F0

Accessibility & contrast

On white

5.87
#5A4FDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5A4FDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FDB
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FDB#FFFFFF#000000##FFFFFF
##5A4FDB1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#005FD8
Tritanopia (blue-blind)
#00728E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5a4fdb;
/* rgb */ color: rgb(90, 79, 219);
/* oklch */ color: oklch(52.3% 0.206 280.1);
Tailwind
colors: {
  custom: {
    50: '#9581e7',
    500: '#5a4fdb',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fdb;
$custom-light: #9581e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fdb",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 219
  },
  "hsl": {
    "h": 244.714,
    "s": 66.038,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52335,
    "c": 0.20558,
    "h": 280.1
  },
  "luminance": 0.1288
}

Semantic roles & 50–950 ramp

primary
#5A4FDB
secondary
#DADFA7
accent
#E93FDC
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5A4FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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