#5A46E4#5A46E4

#5A46E4 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.8% C 0.227 H 280.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5A46E4
RGBrgb(90, 70, 228)
HSLhsl(248, 75%, 58%)
HSVhsv(248, 69%, 89%)
CMYKcmyk(60.5%, 69.3%, 0%, 10.6%)
CIE-LABlab(41.46, 51.72, -77.29)
CIE-LCHlch(41.46, 93.00, 303.79°)
OKLaboklab(51.76% 0.042 -0.2228)
OKLCHoklch(51.76% 0.227 280.7)
XYZxyz(20.4058, 12.1539, 74.6544)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46E4 #D0E446
analogous
#4681E4 #5A46E4 #A946E4
triadic
#5A46E4 #E45A46 #46E45A
tetradic
#5A46E4 #E44681 #D0E446 #46E4A9
square
#5A46E4 #E44681 #D0E446 #46E4A9
split-complementary
#5A46E4 #E4A946 #81E446
monochromatic
#271699 #341ECF #5A46E4 #8A7BEC #B9B1F4

Accessibility & contrast

On white

6.12
#5A46E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5A46E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46E4
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46E4#FFFFFF#000000##FFFFFF
##5A46E41.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E9
Deuteranopia (green-blind)
#005CE1
Tritanopia (blue-blind)
#007090
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a46e4;
/* rgb */ color: rgb(90, 70, 228);
/* oklch */ color: oklch(51.8% 0.227 280.7);
Tailwind
colors: {
  custom: {
    50: '#977bee',
    500: '#5a46e4',
    950: '#000000',
  },
}
SCSS
$custom: #5a46e4;
$custom-light: #977bee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46e4",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 228
  },
  "hsl": {
    "h": 247.595,
    "s": 74.528,
    "l": 58.431
  },
  "oklch": {
    "l": 0.51759,
    "c": 0.22674,
    "h": 280.7
  },
  "luminance": 0.12155
}

Semantic roles & 50–950 ramp

primary
#5A46E4
secondary
#DAE2A4
accent
#F137DA
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5A46E4

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

Preview Lab → · Contrast checker → · Palette generator →

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