#5B48CC#5B48CC

#5B48CC is a mid, vivid blue. Relative luminance 0.112; OKLCH L 50.1% C 0.195 H 283.4°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5B48CC
RGBrgb(91, 72, 204)
HSLhsl(249, 56%, 54%)
HSVhsv(249, 65%, 80%)
CMYKcmyk(55.4%, 64.7%, 0%, 20%)
CIE-LABlab(39.94, 43.46, -66.00)
CIE-LCHlch(39.94, 79.02, 303.36°)
OKLaboklab(50.07% 0.0451 -0.1897)
OKLCHoklch(50.07% 0.195 283.4)
XYZxyz(17.5275, 11.2175, 58.3566)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B48CC #B9CC48
analogous
#4877CC #5B48CC #9D48CC
triadic
#5B48CC #CC5B48 #48CC5B
tetradic
#5B48CC #CC4877 #B9CC48 #48CC9D
square
#5B48CC #CC4877 #B9CC48 #48CC9D
split-complementary
#5B48CC #CC9D48 #77CC48
monochromatic
#2E2178 #402FA8 #5B48CC #8678D9 #B1A8E7

Accessibility & contrast

On white

6.47
#5B48CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5B48CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B48CC
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B48CC#FFFFFF#000000##FFFFFF
##5B48CC1.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#256983
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b48cc;
/* rgb */ color: rgb(91, 72, 204);
/* oklch */ color: oklch(50.1% 0.195 283.4);
Tailwind
colors: {
  custom: {
    50: '#947cdd',
    500: '#5b48cc',
    950: '#000000',
  },
}
SCSS
$custom: #5b48cc;
$custom-light: #947cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b48cc",
  "rgb": {
    "r": 91,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 248.636,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50069,
    "c": 0.19496,
    "h": 283.4
  },
  "luminance": 0.11219
}

Semantic roles & 50–950 ramp

primary
#5B48CC
secondary
#CCD49C
accent
#E048CA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B48CC

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

Preview Lab → · Contrast checker → · Palette generator →

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