#5B48FB#5B48FB

#5B48FB is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 54.2% C 0.251 H 278.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5B48FB
RGBrgb(91, 72, 251)
HSLhsl(246, 96%, 63%)
HSVhsv(246, 71%, 98%)
CMYKcmyk(63.7%, 71.3%, 0%, 1.6%)
CIE-LABlab(43.98, 57.68, -86.11)
CIE-LCHlch(43.98, 103.65, 303.81°)
OKLaboklab(54.2% 0.0379 -0.2486)
OKLCHoklch(54.2% 0.251 278.7)
XYZxyz(24.0387, 13.8220, 92.6492)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B48FB #E8FB48
analogous
#488EFB #5B48FB #B548FB
triadic
#5B48FB #FB5B48 #48FB5B
tetradic
#5B48FB #FB488E #E8FB48 #48FBB5
square
#5B48FB #FB488E #E8FB48 #48FBB5
split-complementary
#5B48FB #FBB548 #8EFB48
monochromatic
#1904C4 #250CFA #5B48FB #9184FC #C6C0FE

Accessibility & contrast

On white

5.58
#5B48FB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5B48FB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B48FB
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B48FB#FFFFFF#000000##FFFFFF
##5B48FB1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FFF
Deuteranopia (green-blind)
#0061F8
Tritanopia (blue-blind)
#007A9D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5b48fb;
/* rgb */ color: rgb(91, 72, 251);
/* oklch */ color: oklch(54.2% 0.251 278.7);
Tailwind
colors: {
  custom: {
    50: '#9c7efe',
    500: '#5b48fb',
    950: '#000000',
  },
}
SCSS
$custom: #5b48fb;
$custom-light: #9c7efe;
$custom-dark: #000000;
JSON
{
  "hex": "#5b48fb",
  "rgb": {
    "r": 91,
    "g": 72,
    "b": 251
  },
  "hsl": {
    "h": 246.369,
    "s": 95.722,
    "l": 63.333
  },
  "oklch": {
    "l": 0.54196,
    "c": 0.25146,
    "h": 278.7
  },
  "luminance": 0.13824
}

Semantic roles & 50–950 ramp

primary
#5B48FB
secondary
#E9EFB0
accent
#E600CD
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100A18
muted
#7F7C86

Preview Lab

Preview with #5B48FB

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

Preview Lab → · Contrast checker → · Palette generator →

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