#5A46EC#5A46EC

#5A46EC is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.5% C 0.236 H 279.9°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#5A46EC
RGBrgb(90, 70, 236)
HSLhsl(247, 81%, 60%)
HSVhsv(247, 70%, 93%)
CMYKcmyk(61.9%, 70.3%, 0%, 7.5%)
CIE-LABlab(42.17, 54.13, -80.66)
CIE-LCHlch(42.17, 97.14, 303.86°)
OKLaboklab(52.48% 0.0407 -0.2327)
OKLCHoklch(52.48% 0.236 279.9)
XYZxyz(21.5421, 12.6085, 80.6391)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46EC #D8EC46
analogous
#4685EC #5A46EC #AD46EC
triadic
#5A46EC #EC5A46 #46EC5A
tetradic
#5A46EC #EC4685 #D8EC46 #46ECAD
square
#5A46EC #EC4685 #D8EC46 #46ECAD
split-complementary
#5A46EC #ECAD46 #85EC46
monochromatic
#2311A7 #2F17DE #5A46EC #8B7DF2 #BDB5F7

Accessibility & contrast

On white

5.96
#5A46EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5A46EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46EC
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46EC#FFFFFF#000000##FFFFFF
##5A46EC1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF1
Deuteranopia (green-blind)
#005DE9
Tritanopia (blue-blind)
#007394
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a46ec;
/* rgb */ color: rgb(90, 70, 236);
/* oklch */ color: oklch(52.5% 0.236 279.9);
Tailwind
colors: {
  custom: {
    50: '#997cf3',
    500: '#5a46ec',
    950: '#000000',
  },
}
SCSS
$custom: #5a46ec;
$custom-light: #997cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46ec",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 236
  },
  "hsl": {
    "h": 247.229,
    "s": 81.373,
    "l": 60
  },
  "oklch": {
    "l": 0.52479,
    "c": 0.23619,
    "h": 279.9
  },
  "luminance": 0.1261
}

Semantic roles & 50–950 ramp

primary
#5A46EC
secondary
#DFE7A7
accent
#F830E0
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A46EC

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

Preview Lab → · Contrast checker → · Palette generator →

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