#5A48BB#5A48BB

#5A48BB is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.6% C 0.173 H 285.1°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5A48BB
RGBrgb(90, 72, 187)
HSLhsl(249, 46%, 51%)
HSVhsv(249, 61%, 73%)
CMYKcmyk(51.9%, 61.5%, 0%, 26.7%)
CIE-LABlab(38.54, 38.08, -58.38)
CIE-LCHlch(38.54, 69.70, 303.11°)
OKLaboklab(48.62% 0.0452 -0.1673)
OKLCHoklch(48.62% 0.173 285.1)
XYZxyz(15.5008, 10.3954, 48.1938)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A48BB #A9BB48
analogous
#486FBB #5A48BB #9348BB
triadic
#5A48BB #BB5A48 #48BB5A
tetradic
#5A48BB #BB486F #A9BB48 #48BB93
square
#5A48BB #BB486F #A9BB48 #48BB93
split-complementary
#5A48BB #BB9348 #6FBB48
monochromatic
#2F2564 #443690 #5A48BB #8275CC #AAA1DC

Accessibility & contrast

On white

6.82
#5A48BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5A48BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A48BB
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A48BB#FFFFFF#000000##FFFFFF
##5A48BB1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#34637A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a48bb;
/* rgb */ color: rgb(90, 72, 187);
/* oklch */ color: oklch(48.6% 0.173 285.1);
Tailwind
colors: {
  custom: {
    50: '#917cd0',
    500: '#5a48bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a48bb;
$custom-light: #917cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a48bb",
  "rgb": {
    "r": 90,
    "g": 72,
    "b": 187
  },
  "hsl": {
    "h": 249.391,
    "s": 45.817,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48615,
    "c": 0.1733,
    "h": 285.1
  },
  "luminance": 0.10396
}

Semantic roles & 50–950 ramp

primary
#5A48BB
secondary
#C1C996
accent
#D552C1
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5A48BB

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

Preview Lab → · Contrast checker → · Palette generator →

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