#5A46D9#5A46D9

#5A46D9 is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 50.8% C 0.214 H 281.8°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#5A46D9
RGBrgb(90, 70, 217)
HSLhsl(248, 66%, 56%)
HSVhsv(248, 68%, 85%)
CMYKcmyk(58.5%, 67.7%, 0%, 14.9%)
CIE-LABlab(40.51, 48.39, -72.56)
CIE-LCHlch(40.51, 87.22, 303.70°)
OKLaboklab(50.79% 0.0438 -0.209)
OKLCHoklch(50.79% 0.214 281.8)
XYZxyz(18.9271, 11.5624, 66.8666)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46D9 #C5D946
analogous
#467CD9 #5A46D9 #A446D9
triadic
#5A46D9 #D95A46 #46D95A
tetradic
#5A46D9 #D9467C #C5D946 #46D9A4
square
#5A46D9 #D9467C #C5D946 #46D9A4
split-complementary
#5A46D9 #D9A446 #7CD946
monochromatic
#2B1C89 #3B26BB #5A46D9 #8779E3 #B5ACEE

Accessibility & contrast

On white

6.34
#5A46D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5A46D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46D9
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46D9#FFFFFF#000000##FFFFFF
##5A46D91.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DD
Deuteranopia (green-blind)
#005AD6
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a46d9;
/* rgb */ color: rgb(90, 70, 217);
/* oklch */ color: oklch(50.8% 0.214 281.8);
Tailwind
colors: {
  custom: {
    50: '#957be6',
    500: '#5a46d9',
    950: '#000000',
  },
}
SCSS
$custom: #5a46d9;
$custom-light: #957be6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46d9",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 217
  },
  "hsl": {
    "h": 248.163,
    "s": 65.919,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50789,
    "c": 0.21351,
    "h": 281.8
  },
  "luminance": 0.11564
}

Semantic roles & 50–950 ramp

primary
#5A46D9
secondary
#D3DC9F
accent
#E93FD2
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5A46D9

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

Preview Lab → · Contrast checker → · Palette generator →

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