#5A46D6#5A46D6

#5A46D6 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.5% C 0.210 H 282.2°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5A46D6
RGBrgb(90, 70, 214)
HSLhsl(248, 64%, 56%)
HSVhsv(248, 67%, 84%)
CMYKcmyk(57.9%, 67.3%, 0%, 16.1%)
CIE-LABlab(40.26, 47.48, -71.26)
CIE-LCHlch(40.26, 85.63, 303.68°)
OKLaboklab(50.53% 0.0442 -0.2051)
OKLCHoklch(50.53% 0.21 282.2)
XYZxyz(18.5404, 11.4078, 64.8302)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46D6 #C2D646
analogous
#467AD6 #5A46D6 #A246D6
triadic
#5A46D6 #D65A46 #46D65A
tetradic
#5A46D6 #D6467A #C2D646 #46D6A2
square
#5A46D6 #D6467A #C2D646 #46D6A2
split-complementary
#5A46D6 #D6A246 #7AD646
monochromatic
#2C1D84 #3C28B6 #5A46D6 #8778E1 #B3AAEC

Accessibility & contrast

On white

6.40
#5A46D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5A46D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46D6
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46D6#FFFFFF#000000##FFFFFF
##5A46D61.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DA
Deuteranopia (green-blind)
#005AD3
Tritanopia (blue-blind)
#0B6B88
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a46d6;
/* rgb */ color: rgb(90, 70, 214);
/* oklch */ color: oklch(50.5% 0.210 282.2);
Tailwind
colors: {
  custom: {
    50: '#957be4',
    500: '#5a46d6',
    950: '#000000',
  },
}
SCSS
$custom: #5a46d6;
$custom-light: #957be4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46d6",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 214
  },
  "hsl": {
    "h": 248.333,
    "s": 63.717,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50529,
    "c": 0.20984,
    "h": 282.2
  },
  "luminance": 0.11409
}

Semantic roles & 50–950 ramp

primary
#5A46D6
secondary
#D2DA9E
accent
#E741D0
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5A46D6

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

Preview Lab → · Contrast checker → · Palette generator →

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