#5B48BC#5B48BC

#5B48BC is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.8% C 0.174 H 285.4°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5B48BC
RGBrgb(91, 72, 188)
HSLhsl(250, 46%, 51%)
HSVhsv(250, 62%, 74%)
CMYKcmyk(51.6%, 61.7%, 0%, 26.3%)
CIE-LABlab(38.71, 38.57, -58.70)
CIE-LCHlch(38.71, 70.24, 303.31°)
OKLaboklab(48.78% 0.0464 -0.1682)
OKLCHoklch(48.78% 0.175 285.4)
XYZxyz(15.7061, 10.4889, 48.7642)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B48BC #A9BC48
analogous
#486FBC #5B48BC #9548BC
triadic
#5B48BC #BC5B48 #48BC5B
tetradic
#5B48BC #BC486F #A9BC48 #48BC95
square
#5B48BC #BC486F #A9BC48 #48BC95
split-complementary
#5B48BC #BC9548 #6FBC48
monochromatic
#2F2565 #443592 #5B48BC #8375CC #ABA2DD

Accessibility & contrast

On white

6.78
#5B48BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5B48BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B48BC
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B48BC#FFFFFF#000000##FFFFFF
##5B48BC1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b48bc;
/* rgb */ color: rgb(91, 72, 188);
/* oklch */ color: oklch(48.8% 0.174 285.4);
Tailwind
colors: {
  custom: {
    50: '#917cd1',
    500: '#5b48bc',
    950: '#000000',
  },
}
SCSS
$custom: #5b48bc;
$custom-light: #917cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b48bc",
  "rgb": {
    "r": 91,
    "g": 72,
    "b": 188
  },
  "hsl": {
    "h": 249.828,
    "s": 46.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4878,
    "c": 0.1745,
    "h": 285.4
  },
  "luminance": 0.1049
}

Semantic roles & 50–950 ramp

primary
#5B48BC
secondary
#C1CA96
accent
#D652C0
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5B48BC

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

Preview Lab → · Contrast checker → · Palette generator →

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