#5A48E4#5A48E4

#5A48E4 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 52.0% C 0.225 H 280.4°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5A48E4
RGBrgb(90, 72, 228)
HSLhsl(247, 74%, 59%)
HSVhsv(247, 68%, 89%)
CMYKcmyk(60.5%, 68.4%, 0%, 10.6%)
CIE-LABlab(41.86, 50.63, -76.64)
CIE-LCHlch(41.86, 91.85, 303.45°)
OKLaboklab(52.04% 0.0406 -0.2209)
OKLCHoklch(52.04% 0.225 280.4)
XYZxyz(20.5330, 12.4083, 74.6968)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A48E4 #D2E448
analogous
#4884E4 #5A48E4 #A848E4
triadic
#5A48E4 #E45A48 #48E45A
tetradic
#5A48E4 #E44884 #D2E448 #48E4A8
square
#5A48E4 #E44884 #D2E448 #48E4A8
split-complementary
#5A48E4 #E4A848 #84E448
monochromatic
#26179B #331FD0 #5A48E4 #8A7DEC #BAB3F4

Accessibility & contrast

On white

6.03
#5A48E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5A48E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A48E4
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A48E4#FFFFFF#000000##FFFFFF
##5A48E41.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E9
Deuteranopia (green-blind)
#005DE1
Tritanopia (blue-blind)
#007291
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a48e4;
/* rgb */ color: rgb(90, 72, 228);
/* oklch */ color: oklch(52.0% 0.225 280.4);
Tailwind
colors: {
  custom: {
    50: '#977dee',
    500: '#5a48e4',
    950: '#000000',
  },
}
SCSS
$custom: #5a48e4;
$custom-light: #977dee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a48e4",
  "rgb": {
    "r": 90,
    "g": 72,
    "b": 228
  },
  "hsl": {
    "h": 246.923,
    "s": 74.286,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52044,
    "c": 0.22459,
    "h": 280.4
  },
  "luminance": 0.1241
}

Semantic roles & 50–950 ramp

primary
#5A48E4
secondary
#DCE3A5
accent
#F137DB
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A48E4

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

Preview Lab → · Contrast checker → · Palette generator →

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