#5A46E7#5A46E7

#5A46E7 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 52.0% C 0.230 H 280.4°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5A46E7
RGBrgb(90, 70, 231)
HSLhsl(247, 77%, 59%)
HSVhsv(247, 70%, 91%)
CMYKcmyk(61%, 69.7%, 0%, 9.4%)
CIE-LABlab(41.72, 52.63, -78.56)
CIE-LCHlch(41.72, 94.56, 303.82°)
OKLaboklab(52.03% 0.0415 -0.2265)
OKLCHoklch(52.03% 0.23 280.4)
XYZxyz(20.8258, 12.3220, 76.8667)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46E7 #D3E746
analogous
#4683E7 #5A46E7 #AA46E7
triadic
#5A46E7 #E75A46 #46E75A
tetradic
#5A46E7 #E74683 #D3E746 #46E7AA
square
#5A46E7 #E74683 #D3E746 #46E7AA
split-complementary
#5A46E7 #E7AA46 #83E746
monochromatic
#26159E #321CD4 #5A46E7 #8A7CEE #BBB2F5

Accessibility & contrast

On white

6.06
#5A46E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5A46E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46E7
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46E7#FFFFFF#000000##FFFFFF
##5A46E71.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EC
Deuteranopia (green-blind)
#005CE4
Tritanopia (blue-blind)
#007292
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a46e7;
/* rgb */ color: rgb(90, 70, 231);
/* oklch */ color: oklch(52.0% 0.230 280.4);
Tailwind
colors: {
  custom: {
    50: '#987cf0',
    500: '#5a46e7',
    950: '#000000',
  },
}
SCSS
$custom: #5a46e7;
$custom-light: #987cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46e7",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 231
  },
  "hsl": {
    "h": 247.453,
    "s": 77.033,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52027,
    "c": 0.23031,
    "h": 280.4
  },
  "luminance": 0.12323
}

Semantic roles & 50–950 ramp

primary
#5A46E7
secondary
#DCE4A5
accent
#F434DC
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5A46E7

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

Preview Lab → · Contrast checker → · Palette generator →

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