#5B48C7#5B48C7

#5B48C7 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.7% C 0.189 H 284.0°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#5B48C7
RGBrgb(91, 72, 199)
HSLhsl(249, 53%, 53%)
HSVhsv(249, 64%, 78%)
CMYKcmyk(54.3%, 63.8%, 0%, 22%)
CIE-LABlab(39.55, 41.93, -63.75)
CIE-LCHlch(39.55, 76.30, 303.34°)
OKLaboklab(49.66% 0.0456 -0.183)
OKLCHoklch(49.66% 0.189 284)
XYZxyz(16.9374, 10.9814, 55.2489)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B48C7 #B4C748
analogous
#4875C7 #5B48C7 #9A48C7
triadic
#5B48C7 #C75B48 #48C75B
tetradic
#5B48C7 #C74875 #B4C748 #48C79A
square
#5B48C7 #C74875 #B4C748 #48C79A
split-complementary
#5B48C7 #C79A48 #75C748
monochromatic
#2F2372 #4231A1 #5B48C7 #8577D5 #AFA6E4

Accessibility & contrast

On white

6.57
#5B48C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5B48C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B48C7
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B48C7#FFFFFF#000000##FFFFFF
##5B48C71.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CB
Deuteranopia (green-blind)
#0059C4
Tritanopia (blue-blind)
#2B6781
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5b48c7;
/* rgb */ color: rgb(91, 72, 199);
/* oklch */ color: oklch(49.7% 0.189 284.0);
Tailwind
colors: {
  custom: {
    50: '#937cd9',
    500: '#5b48c7',
    950: '#000000',
  },
}
SCSS
$custom: #5b48c7;
$custom-light: #937cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b48c7",
  "rgb": {
    "r": 91,
    "g": 72,
    "b": 199
  },
  "hsl": {
    "h": 248.976,
    "s": 53.138,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49659,
    "c": 0.18863,
    "h": 284
  },
  "luminance": 0.10982
}

Semantic roles & 50–950 ramp

primary
#5B48C7
secondary
#C9D19A
accent
#DD4BC7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B48C7

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

Preview Lab → · Contrast checker → · Palette generator →

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