#5A48BC#5A48BC

#5A48BC is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.7% C 0.175 H 285.0°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#5A48BC
RGBrgb(90, 72, 188)
HSLhsl(249, 46%, 51%)
HSVhsv(249, 62%, 74%)
CMYKcmyk(52.1%, 61.7%, 0%, 26.3%)
CIE-LABlab(38.62, 38.38, -58.84)
CIE-LCHlch(38.62, 70.26, 303.12°)
OKLaboklab(48.69% 0.0451 -0.1687)
OKLCHoklch(48.69% 0.175 285)
XYZxyz(15.6082, 10.4384, 48.7596)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A48BC #AABC48
analogous
#4870BC #5A48BC #9448BC
triadic
#5A48BC #BC5A48 #48BC5A
tetradic
#5A48BC #BC4870 #AABC48 #48BC94
square
#5A48BC #BC4870 #AABC48 #48BC94
split-complementary
#5A48BC #BC9448 #70BC48
monochromatic
#2F2565 #443592 #5A48BC #8275CC #ABA2DD

Accessibility & contrast

On white

6.80
#5A48BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5A48BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A48BC
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A48BC#FFFFFF#000000##FFFFFF
##5A48BC1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#33647B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a48bc;
/* rgb */ color: rgb(90, 72, 188);
/* oklch */ color: oklch(48.7% 0.175 285.0);
Tailwind
colors: {
  custom: {
    50: '#917cd1',
    500: '#5a48bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a48bc;
$custom-light: #917cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a48bc",
  "rgb": {
    "r": 90,
    "g": 72,
    "b": 188
  },
  "hsl": {
    "h": 249.31,
    "s": 46.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48694,
    "c": 0.1746,
    "h": 285
  },
  "luminance": 0.10439
}

Semantic roles & 50–950 ramp

primary
#5A48BC
secondary
#C2CA96
accent
#D652C2
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5A48BC

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

Preview Lab → · Contrast checker → · Palette generator →

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