#5A46EF#5A46EF

#5A46EF is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.8% C 0.240 H 279.6°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5A46EF
RGBrgb(90, 70, 239)
HSLhsl(247, 84%, 61%)
HSVhsv(247, 71%, 94%)
CMYKcmyk(62.3%, 70.7%, 0%, 6.3%)
CIE-LABlab(42.44, 55.03, -81.91)
CIE-LCHlch(42.44, 98.68, 303.89°)
OKLaboklab(52.75% 0.0401 -0.2363)
OKLCHoklch(52.75% 0.24 279.6)
XYZxyz(21.9816, 12.7843, 82.9539)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46EF #DBEF46
analogous
#4686EF #5A46EF #AF46EF
triadic
#5A46EF #EF5A46 #46EF5A
tetradic
#5A46EF #EF4686 #DBEF46 #46EFAF
square
#5A46EF #EF4686 #DBEF46 #46EFAF
split-complementary
#5A46EF #EFAF46 #86EF46
monochromatic
#210FAC #2C14E4 #5A46EF #8C7EF4 #BEB7F9

Accessibility & contrast

On white

5.90
#5A46EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5A46EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46EF
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46EF#FFFFFF#000000##FFFFFF
##5A46EF1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF4
Deuteranopia (green-blind)
#005EEC
Tritanopia (blue-blind)
#007596
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a46ef;
/* rgb */ color: rgb(90, 70, 239);
/* oklch */ color: oklch(52.8% 0.240 279.6);
Tailwind
colors: {
  custom: {
    50: '#997cf6',
    500: '#5a46ef',
    950: '#000000',
  },
}
SCSS
$custom: #5a46ef;
$custom-light: #997cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46ef",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 239
  },
  "hsl": {
    "h": 247.101,
    "s": 84.08,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52753,
    "c": 0.23971,
    "h": 279.6
  },
  "luminance": 0.12786
}

Semantic roles & 50–950 ramp

primary
#5A46EF
secondary
#E1E9A8
accent
#E105C7
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A46EF

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

Preview Lab → · Contrast checker → · Palette generator →

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