#5A48FB#5A48FB

#5A48FB is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 54.1% C 0.252 H 278.4°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5A48FB
RGBrgb(90, 72, 251)
HSLhsl(246, 96%, 63%)
HSVhsv(246, 71%, 98%)
CMYKcmyk(64.1%, 71.3%, 0%, 1.6%)
CIE-LABlab(43.90, 57.57, -86.24)
CIE-LCHlch(43.90, 103.68, 303.72°)
OKLaboklab(54.13% 0.0366 -0.249)
OKLCHoklch(54.13% 0.252 278.4)
XYZxyz(23.9408, 13.7714, 92.6446)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A48FB #E9FB48
analogous
#488FFB #5A48FB #B448FB
triadic
#5A48FB #FB5A48 #48FB5A
tetradic
#5A48FB #FB488F #E9FB48 #48FBB4
square
#5A48FB #FB488F #E9FB48 #48FBB4
split-complementary
#5A48FB #FBB448 #8FFB48
monochromatic
#1804C4 #240CFA #5A48FB #9084FC #C6C0FE

Accessibility & contrast

On white

5.59
#5A48FB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5A48FB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A48FB
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A48FB#FFFFFF#000000##FFFFFF
##5A48FB1.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a48fb;
/* rgb */ color: rgb(90, 72, 251);
/* oklch */ color: oklch(54.1% 0.252 278.4);
Tailwind
colors: {
  custom: {
    50: '#9b7efe',
    500: '#5a48fb',
    950: '#000000',
  },
}
SCSS
$custom: #5a48fb;
$custom-light: #9b7efe;
$custom-dark: #000000;
JSON
{
  "hex": "#5a48fb",
  "rgb": {
    "r": 90,
    "g": 72,
    "b": 251
  },
  "hsl": {
    "h": 246.034,
    "s": 95.722,
    "l": 63.333
  },
  "oklch": {
    "l": 0.54126,
    "c": 0.25166,
    "h": 278.4
  },
  "luminance": 0.13773
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A48FB

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

Preview Lab → · Contrast checker → · Palette generator →

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