#5A48CD#5A48CD

#5A48CD is a mid, vivid blue. Relative luminance 0.112; OKLCH L 50.1% C 0.196 H 282.8°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#5A48CD
RGBrgb(90, 72, 205)
HSLhsl(248, 57%, 54%)
HSVhsv(248, 65%, 80%)
CMYKcmyk(56.1%, 64.9%, 0%, 19.6%)
CIE-LABlab(39.94, 43.60, -66.59)
CIE-LCHlch(39.94, 79.59, 303.21°)
OKLaboklab(50.07% 0.0436 -0.1914)
OKLCHoklch(50.07% 0.196 282.8)
XYZxyz(17.5499, 11.2151, 58.9857)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A48CD #BBCD48
analogous
#4879CD #5A48CD #9D48CD
triadic
#5A48CD #CD5A48 #48CD5A
tetradic
#5A48CD #CD4879 #BBCD48 #48CD9D
square
#5A48CD #CD4879 #BBCD48 #48CD9D
split-complementary
#5A48CD #CD9D48 #79CD48
monochromatic
#2D2179 #3F2EA9 #5A48CD #8578DA #B1A8E7

Accessibility & contrast

On white

6.48
#5A48CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5A48CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A48CD
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A48CD#FFFFFF#000000##FFFFFF
##5A48CD1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a48cd;
/* rgb */ color: rgb(90, 72, 205);
/* oklch */ color: oklch(50.1% 0.196 282.8);
Tailwind
colors: {
  custom: {
    50: '#937cdd',
    500: '#5a48cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a48cd;
$custom-light: #937cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a48cd",
  "rgb": {
    "r": 90,
    "g": 72,
    "b": 205
  },
  "hsl": {
    "h": 248.12,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.5007,
    "c": 0.19635,
    "h": 282.8
  },
  "luminance": 0.11216
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A48CD

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

Preview Lab → · Contrast checker → · Palette generator →

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