#5A48C2#5A48C2

#5A48C2 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 49.2% C 0.182 H 284.2°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5A48C2
RGBrgb(90, 72, 194)
HSLhsl(249, 50%, 52%)
HSVhsv(249, 63%, 76%)
CMYKcmyk(53.6%, 62.9%, 0%, 23.9%)
CIE-LABlab(39.07, 40.22, -61.61)
CIE-LCHlch(39.07, 73.58, 303.14°)
OKLaboklab(49.17% 0.0447 -0.1768)
OKLCHoklch(49.17% 0.182 284.2)
XYZxyz(16.2685, 10.7025, 52.2370)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A48C2 #B0C248
analogous
#4873C2 #5A48C2 #9748C2
triadic
#5A48C2 #C25A48 #48C25A
tetradic
#5A48C2 #C24873 #B0C248 #48C297
square
#5A48C2 #C24873 #B0C248 #48C297
split-complementary
#5A48C2 #C29748 #73C248
monochromatic
#2E246C #42339A #5A48C2 #8376D1 #ADA4E1

Accessibility & contrast

On white

6.69
#5A48C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5A48C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A48C2
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A48C2#FFFFFF#000000##FFFFFF
##5A48C21.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#0058C0
Tritanopia (blue-blind)
#2E667E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a48c2;
/* rgb */ color: rgb(90, 72, 194);
/* oklch */ color: oklch(49.2% 0.182 284.2);
Tailwind
colors: {
  custom: {
    50: '#927cd5',
    500: '#5a48c2',
    950: '#000000',
  },
}
SCSS
$custom: #5a48c2;
$custom-light: #927cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a48c2",
  "rgb": {
    "r": 90,
    "g": 72,
    "b": 194
  },
  "hsl": {
    "h": 248.852,
    "s": 50,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49171,
    "c": 0.18237,
    "h": 284.2
  },
  "luminance": 0.10703
}

Semantic roles & 50–950 ramp

primary
#5A48C2
secondary
#C6CE98
accent
#DA4EC5
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A48C2

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

Preview Lab → · Contrast checker → · Palette generator →

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