#5B48CD#5B48CD

#5B48CD is a mid, vivid blue. Relative luminance 0.113; OKLCH L 50.2% C 0.196 H 283.2°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#5B48CD
RGBrgb(91, 72, 205)
HSLhsl(249, 57%, 54%)
HSVhsv(249, 65%, 80%)
CMYKcmyk(55.6%, 64.9%, 0%, 19.6%)
CIE-LABlab(40.02, 43.76, -66.45)
CIE-LCHlch(40.02, 79.57, 303.37°)
OKLaboklab(50.15% 0.0449 -0.191)
OKLCHoklch(50.15% 0.196 283.2)
XYZxyz(17.6478, 11.2656, 58.9903)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B48CD #BACD48
analogous
#4878CD #5B48CD #9D48CD
triadic
#5B48CD #CD5B48 #48CD5B
tetradic
#5B48CD #CD4878 #BACD48 #48CD9D
square
#5B48CD #CD4878 #BACD48 #48CD9D
split-complementary
#5B48CD #CD9D48 #78CD48
monochromatic
#2E2179 #402EA9 #5B48CD #8678DA #B1A8E7

Accessibility & contrast

On white

6.45
#5B48CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5B48CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B48CD
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B48CD#FFFFFF#000000##FFFFFF
##5B48CD1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#246984
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b48cd;
/* rgb */ color: rgb(91, 72, 205);
/* oklch */ color: oklch(50.2% 0.196 283.2);
Tailwind
colors: {
  custom: {
    50: '#947cdd',
    500: '#5b48cd',
    950: '#000000',
  },
}
SCSS
$custom: #5b48cd;
$custom-light: #947cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b48cd",
  "rgb": {
    "r": 91,
    "g": 72,
    "b": 205
  },
  "hsl": {
    "h": 248.571,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50151,
    "c": 0.19621,
    "h": 283.2
  },
  "luminance": 0.11267
}

Semantic roles & 50–950 ramp

primary
#5B48CD
secondary
#CDD59C
accent
#E047CB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B48CD

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

Preview Lab → · Contrast checker → · Palette generator →

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