#5A45E4#5A45E4

#5A45E4 is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.6% C 0.228 H 280.8°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#5A45E4
RGBrgb(90, 69, 228)
HSLhsl(248, 75%, 58%)
HSVhsv(248, 70%, 89%)
CMYKcmyk(60.5%, 69.7%, 0%, 10.6%)
CIE-LABlab(41.26, 52.26, -77.61)
CIE-LCHlch(41.26, 93.57, 303.96°)
OKLaboklab(51.62% 0.0428 -0.2237)
OKLCHoklch(51.62% 0.228 280.8)
XYZxyz(20.3437, 12.0299, 74.6337)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45E4 #CFE445
analogous
#457FE4 #5A45E4 #AA45E4
triadic
#5A45E4 #E45A45 #45E45A
tetradic
#5A45E4 #E4457F #CFE445 #45E4AA
square
#5A45E4 #E4457F #CFE445 #45E4AA
split-complementary
#5A45E4 #E4AA45 #7FE445
monochromatic
#271698 #351ECE #5A45E4 #897AEC #B9B0F4

Accessibility & contrast

On white

6.17
#5A45E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5A45E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45E4
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45E4#FFFFFF#000000##FFFFFF
##5A45E41.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a45e4;
/* rgb */ color: rgb(90, 69, 228);
/* oklch */ color: oklch(51.6% 0.228 280.8);
Tailwind
colors: {
  custom: {
    50: '#977bee',
    500: '#5a45e4',
    950: '#000000',
  },
}
SCSS
$custom: #5a45e4;
$custom-light: #977bee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45e4",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 228
  },
  "hsl": {
    "h": 247.925,
    "s": 74.648,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51618,
    "c": 0.2278,
    "h": 280.8
  },
  "luminance": 0.12031
}

Semantic roles & 50–950 ramp

primary
#5A45E4
secondary
#DAE2A3
accent
#F137D9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5A45E4

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

Preview Lab → · Contrast checker → · Palette generator →

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