#5A4FF8#5A4FF8

#5A4FF8 is a mid, highly saturated blue. Relative luminance 0.145; OKLCH L 54.8% C 0.241 H 277.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5A4FF8
RGBrgb(90, 79, 248)
HSLhsl(244, 92%, 64%)
HSVhsv(244, 68%, 97%)
CMYKcmyk(63.7%, 68.1%, 0%, 2.7%)
CIE-LABlab(45.00, 52.88, -82.76)
CIE-LCHlch(45.00, 98.21, 302.58°)
OKLaboklab(54.83% 0.0326 -0.2388)
OKLCHoklch(54.83% 0.241 277.8)
XYZxyz(23.9502, 14.5410, 90.3333)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FF8 #EDF84F
analogous
#4F99F8 #5A4FF8 #AE4FF8
triadic
#5A4FF8 #F85A4F #4FF85A
tetradic
#5A4FF8 #F84F99 #EDF84F #4FF8AE
square
#5A4FF8 #F84F99 #EDF84F #4FF8AE
split-complementary
#5A4FF8 #F8AE4F #99F84F
monochromatic
#1408C5 #2314F6 #5A4FF8 #918AFA #C8C5FD

Accessibility & contrast

On white

5.37
#5A4FF8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5A4FF8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FF8
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FF8#FFFFFF#000000##FFFFFF
##5A4FF81.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071FD
Deuteranopia (green-blind)
#0063F5
Tritanopia (blue-blind)
#007C9E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a4ff8;
/* rgb */ color: rgb(90, 79, 248);
/* oklch */ color: oklch(54.8% 0.241 277.8);
Tailwind
colors: {
  custom: {
    50: '#9a82fc',
    500: '#5a4ff8',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ff8;
$custom-light: #9a82fc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ff8",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 248
  },
  "hsl": {
    "h": 243.905,
    "s": 92.35,
    "l": 64.118
  },
  "oklch": {
    "l": 0.54828,
    "c": 0.24104,
    "h": 277.8
  },
  "luminance": 0.14543
}

Semantic roles & 50–950 ramp

primary
#5A4FF8
secondary
#EBEFB4
accent
#E600D7
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100A18
muted
#7F7C86

Preview Lab

Preview with #5A4FF8

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

Preview Lab → · Contrast checker → · Palette generator →

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