#5A48E1#5A48E1

#5A48E1 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.8% C 0.221 H 280.7°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#5A48E1
RGBrgb(90, 72, 225)
HSLhsl(247, 72%, 58%)
HSVhsv(247, 68%, 88%)
CMYKcmyk(60%, 68%, 0%, 11.8%)
CIE-LABlab(41.60, 49.71, -75.35)
CIE-LCHlch(41.60, 90.27, 303.41°)
OKLaboklab(51.78% 0.041 -0.2171)
OKLCHoklch(51.78% 0.221 280.7)
XYZxyz(20.1201, 12.2432, 72.5225)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A48E1 #CFE148
analogous
#4882E1 #5A48E1 #A648E1
triadic
#5A48E1 #E15A48 #48E15A
tetradic
#5A48E1 #E14882 #CFE148 #48E1A6
square
#5A48E1 #E14882 #CFE148 #48E1A6
split-complementary
#5A48E1 #E1A648 #82E148
monochromatic
#271996 #3521CB #5A48E1 #897DEA #B9B1F2

Accessibility & contrast

On white

6.09
#5A48E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5A48E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A48E1
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A48E1#FFFFFF#000000##FFFFFF
##5A48E11.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E6
Deuteranopia (green-blind)
#005CDE
Tritanopia (blue-blind)
#00708F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a48e1;
/* rgb */ color: rgb(90, 72, 225);
/* oklch */ color: oklch(51.8% 0.221 280.7);
Tailwind
colors: {
  custom: {
    50: '#977dec',
    500: '#5a48e1',
    950: '#000000',
  },
}
SCSS
$custom: #5a48e1;
$custom-light: #977dec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a48e1",
  "rgb": {
    "r": 90,
    "g": 72,
    "b": 225
  },
  "hsl": {
    "h": 247.059,
    "s": 71.831,
    "l": 58.235
  },
  "oklch": {
    "l": 0.5178,
    "c": 0.22098,
    "h": 280.7
  },
  "luminance": 0.12245
}

Semantic roles & 50–950 ramp

primary
#5A48E1
secondary
#DAE1A4
accent
#EF39D9
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5A48E1

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

Preview Lab → · Contrast checker → · Palette generator →

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