#5A48CB#5A48CB

#5A48CB is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.9% C 0.194 H 283.1°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5A48CB
RGBrgb(90, 72, 203)
HSLhsl(248, 56%, 54%)
HSVhsv(248, 65%, 80%)
CMYKcmyk(55.7%, 64.5%, 0%, 20.4%)
CIE-LABlab(39.78, 42.98, -65.69)
CIE-LCHlch(39.78, 78.51, 303.20°)
OKLaboklab(49.9% 0.0438 -0.1888)
OKLCHoklch(49.9% 0.194 283.1)
XYZxyz(17.3100, 11.1191, 57.7224)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A48CB #B9CB48
analogous
#4878CB #5A48CB #9C48CB
triadic
#5A48CB #CB5A48 #48CB5A
tetradic
#5A48CB #CB4878 #B9CB48 #48CB9C
square
#5A48CB #CB4878 #B9CB48 #48CB9C
split-complementary
#5A48CB #CB9C48 #78CB48
monochromatic
#2D2277 #402FA6 #5A48CB #8578D9 #B0A7E6

Accessibility & contrast

On white

6.51
#5A48CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5A48CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A48CB
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A48CB#FFFFFF#000000##FFFFFF
##5A48CB1.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#0059C8
Tritanopia (blue-blind)
#236983
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a48cb;
/* rgb */ color: rgb(90, 72, 203);
/* oklch */ color: oklch(49.9% 0.194 283.1);
Tailwind
colors: {
  custom: {
    50: '#937cdc',
    500: '#5a48cb',
    950: '#000000',
  },
}
SCSS
$custom: #5a48cb;
$custom-light: #937cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a48cb",
  "rgb": {
    "r": 90,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 248.244,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49904,
    "c": 0.19382,
    "h": 283.1
  },
  "luminance": 0.1112
}

Semantic roles & 50–950 ramp

primary
#5A48CB
secondary
#CCD39B
accent
#DF49CA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A48CB

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

Preview Lab → · Contrast checker → · Palette generator →

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