#5A48EB#5A48EB

#5A48EB is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.7% C 0.233 H 279.7°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5A48EB
RGBrgb(90, 72, 235)
HSLhsl(247, 80%, 60%)
HSVhsv(247, 69%, 92%)
CMYKcmyk(61.7%, 69.4%, 0%, 7.8%)
CIE-LABlab(42.47, 52.75, -79.60)
CIE-LCHlch(42.47, 95.49, 303.53°)
OKLaboklab(52.67% 0.0394 -0.2296)
OKLCHoklch(52.67% 0.233 279.7)
XYZxyz(21.5244, 12.8049, 79.9185)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A48EB #D9EB48
analogous
#4887EB #5A48EB #AC48EB
triadic
#5A48EB #EB5A48 #48EB5A
tetradic
#5A48EB #EB4887 #D9EB48 #48EBAC
square
#5A48EB #EB4887 #D9EB48 #48EBAC
split-complementary
#5A48EB #EBAC48 #87EB48
monochromatic
#2312A6 #2E18DE #5A48EB #8C7FF1 #BDB6F7

Accessibility & contrast

On white

5.90
#5A48EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5A48EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A48EB
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A48EB#FFFFFF#000000##FFFFFF
##5A48EB1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF0
Deuteranopia (green-blind)
#005EE8
Tritanopia (blue-blind)
#007494
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a48eb;
/* rgb */ color: rgb(90, 72, 235);
/* oklch */ color: oklch(52.7% 0.233 279.7);
Tailwind
colors: {
  custom: {
    50: '#987df3',
    500: '#5a48eb',
    950: '#000000',
  },
}
SCSS
$custom: #5a48eb;
$custom-light: #987df3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a48eb",
  "rgb": {
    "r": 90,
    "g": 72,
    "b": 235
  },
  "hsl": {
    "h": 246.626,
    "s": 80.296,
    "l": 60.196
  },
  "oklch": {
    "l": 0.52667,
    "c": 0.23294,
    "h": 279.7
  },
  "luminance": 0.12807
}

Semantic roles & 50–950 ramp

primary
#5A48EB
secondary
#E0E7A8
accent
#DD09C5
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A48EB

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

Preview Lab → · Contrast checker → · Palette generator →

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