#5A4FDD#5A4FDD

#5A4FDD is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.5% C 0.208 H 279.9°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#5A4FDD
RGBrgb(90, 79, 221)
HSLhsl(245, 68%, 59%)
HSVhsv(245, 64%, 87%)
CMYKcmyk(59.3%, 64.3%, 0%, 13.3%)
CIE-LABlab(42.74, 44.50, -71.21)
CIE-LCHlch(42.74, 83.97, 302.00°)
OKLaboklab(52.5% 0.0359 -0.205)
OKLCHoklch(52.5% 0.208 279.9)
XYZxyz(20.0594, 12.9846, 69.8418)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FDD #D2DD4F
analogous
#4F8BDD #5A4FDD #A14FDD
triadic
#5A4FDD #DD5A4F #4FDD5A
tetradic
#5A4FDD #DD4F8B #D2DD4F #4FDDA1
square
#5A4FDD #DD4F8B #D2DD4F #4FDDA1
split-complementary
#5A4FDD #DDA14F #8BDD4F
monochromatic
#261D95 #3327C8 #5A4FDD #8A82E7 #BAB6F1

Accessibility & contrast

On white

5.84
#5A4FDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5A4FDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FDD
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FDD#FFFFFF#000000##FFFFFF
##5A4FDD1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE1
Deuteranopia (green-blind)
#005FDA
Tritanopia (blue-blind)
#00738F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5a4fdd;
/* rgb */ color: rgb(90, 79, 221);
/* oklch */ color: oklch(52.5% 0.208 279.9);
Tailwind
colors: {
  custom: {
    50: '#9581e9',
    500: '#5a4fdd',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fdd;
$custom-light: #9581e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fdd",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 221
  },
  "hsl": {
    "h": 244.648,
    "s": 67.619,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52501,
    "c": 0.20809,
    "h": 279.9
  },
  "luminance": 0.12986
}

Semantic roles & 50–950 ramp

primary
#5A4FDD
secondary
#DCE0A8
accent
#EA3DDD
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5A4FDD

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

Preview Lab → · Contrast checker → · Palette generator →

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