#5A48CC#5A48CC

#5A48CC is a mid, vivid blue. Relative luminance 0.112; OKLCH L 50.0% C 0.195 H 283.0°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5A48CC
RGBrgb(90, 72, 204)
HSLhsl(248, 56%, 54%)
HSVhsv(248, 65%, 80%)
CMYKcmyk(55.9%, 64.7%, 0%, 20%)
CIE-LABlab(39.86, 43.29, -66.14)
CIE-LCHlch(39.86, 79.05, 303.20°)
OKLaboklab(49.99% 0.0437 -0.1901)
OKLCHoklch(49.99% 0.195 283)
XYZxyz(17.4295, 11.1669, 58.3520)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A48CC #BACC48
analogous
#4878CC #5A48CC #9C48CC
triadic
#5A48CC #CC5A48 #48CC5A
tetradic
#5A48CC #CC4878 #BACC48 #48CC9C
square
#5A48CC #CC4878 #BACC48 #48CC9C
split-complementary
#5A48CC #CC9C48 #78CC48
monochromatic
#2D2178 #3F2FA8 #5A48CC #8578D9 #B0A8E7

Accessibility & contrast

On white

6.49
#5A48CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5A48CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A48CC
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A48CC#FFFFFF#000000##FFFFFF
##5A48CC1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#0059C9
Tritanopia (blue-blind)
#216983
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a48cc;
/* rgb */ color: rgb(90, 72, 204);
/* oklch */ color: oklch(50.0% 0.195 283.0);
Tailwind
colors: {
  custom: {
    50: '#937cdd',
    500: '#5a48cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a48cc;
$custom-light: #937cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a48cc",
  "rgb": {
    "r": 90,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 248.182,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49987,
    "c": 0.19508,
    "h": 283
  },
  "luminance": 0.11168
}

Semantic roles & 50–950 ramp

primary
#5A48CC
secondary
#CCD49C
accent
#E048CB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A48CC

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

Preview Lab → · Contrast checker → · Palette generator →

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