#5A46E5#5A46E5

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

Color values

HEX#5A46E5
RGBrgb(90, 70, 229)
HSLhsl(248, 75%, 59%)
HSVhsv(248, 69%, 90%)
CMYKcmyk(60.7%, 69.4%, 0%, 10.2%)
CIE-LABlab(41.55, 52.02, -77.71)
CIE-LCHlch(41.55, 93.52, 303.80°)
OKLaboklab(51.85% 0.0419 -0.224)
OKLCHoklch(51.85% 0.228 280.6)
XYZxyz(20.5450, 12.2096, 75.3876)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46E5 #D1E546
analogous
#4681E5 #5A46E5 #A946E5
triadic
#5A46E5 #E55A46 #46E55A
tetradic
#5A46E5 #E54681 #D1E546 #46E5A9
square
#5A46E5 #E54681 #D1E546 #46E5A9
split-complementary
#5A46E5 #E5A946 #81E546
monochromatic
#26169B #341DD0 #5A46E5 #8A7CED #BAB1F4

Accessibility & contrast

On white

6.10
#5A46E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5A46E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46E5
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46E5#FFFFFF#000000##FFFFFF
##5A46E51.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EA
Deuteranopia (green-blind)
#005CE2
Tritanopia (blue-blind)
#007190
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a46e5;
/* rgb */ color: rgb(90, 70, 229);
/* oklch */ color: oklch(51.8% 0.228 280.6);
Tailwind
colors: {
  custom: {
    50: '#977cee',
    500: '#5a46e5',
    950: '#000000',
  },
}
SCSS
$custom: #5a46e5;
$custom-light: #977cee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46e5",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 229
  },
  "hsl": {
    "h": 247.547,
    "s": 75.355,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51848,
    "c": 0.22793,
    "h": 280.6
  },
  "luminance": 0.12211
}

Semantic roles & 50–950 ramp

primary
#5A46E5
secondary
#DBE3A4
accent
#F236DA
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5A46E5

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

Preview Lab → · Contrast checker → · Palette generator →

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