#5B48FF#5B48FF

#5B48FF is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 54.6% C 0.256 H 278.3°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5B48FF
RGBrgb(91, 72, 255)
HSLhsl(246, 100%, 64%)
HSVhsv(246, 72%, 100%)
CMYKcmyk(64.3%, 71.8%, 0%, 0%)
CIE-LABlab(44.34, 58.87, -87.74)
CIE-LCHlch(44.34, 105.66, 303.86°)
OKLaboklab(54.57% 0.0371 -0.2533)
OKLCHoklch(54.57% 0.256 278.3)
XYZxyz(24.6759, 14.0768, 96.0051)
Luminance0.1408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B48FF #ECFF48
analogous
#4890FF #5B48FF #B748FF
triadic
#5B48FF #FF5B48 #48FF5B
tetradic
#5B48FF #FF4890 #ECFF48 #48FFB7
square
#5B48FF #FF4890 #ECFF48 #48FFB7
split-complementary
#5B48FF #FFB748 #90FF48
monochromatic
#1500CD #240BFF #5B48FF #9285FF #C9C2FF

Accessibility & contrast

On white

5.50
#5B48FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5B48FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B48FF
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B48FF#FFFFFF#000000##FFFFFF
##5B48FF1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070FF
Deuteranopia (green-blind)
#0061FC
Tritanopia (blue-blind)
#007BA0
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5b48ff;
/* rgb */ color: rgb(91, 72, 255);
/* oklch */ color: oklch(54.6% 0.256 278.3);
Tailwind
colors: {
  custom: {
    50: '#9c7eff',
    500: '#5b48ff',
    950: '#000000',
  },
}
SCSS
$custom: #5b48ff;
$custom-light: #9c7eff;
$custom-dark: #000000;
JSON
{
  "hex": "#5b48ff",
  "rgb": {
    "r": 91,
    "g": 72,
    "b": 255
  },
  "hsl": {
    "h": 246.23,
    "s": 100,
    "l": 64.118
  },
  "oklch": {
    "l": 0.54567,
    "c": 0.25605,
    "h": 278.3
  },
  "luminance": 0.14079
}

Semantic roles & 50–950 ramp

primary
#5B48FF
secondary
#EBF1B1
accent
#E600CE
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100A18
muted
#7F7C86

Preview Lab

Preview with #5B48FF

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

Preview Lab → · Contrast checker → · Palette generator →

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