#5A45E5#5A45E5

#5A45E5 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.7% C 0.229 H 280.7°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#5A45E5
RGBrgb(90, 69, 229)
HSLhsl(248, 75%, 58%)
HSVhsv(248, 70%, 90%)
CMYKcmyk(60.7%, 69.9%, 0%, 10.2%)
CIE-LABlab(41.35, 52.56, -78.03)
CIE-LCHlch(41.35, 94.09, 303.96°)
OKLaboklab(51.71% 0.0426 -0.225)
OKLCHoklch(51.71% 0.229 280.7)
XYZxyz(20.4830, 12.0855, 75.3669)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45E5 #D0E545
analogous
#4580E5 #5A45E5 #AA45E5
triadic
#5A45E5 #E55A45 #45E55A
tetradic
#5A45E5 #E54580 #D0E545 #45E5AA
square
#5A45E5 #E54580 #D0E545 #45E5AA
split-complementary
#5A45E5 #E5AA45 #80E545
monochromatic
#27169A #341DD0 #5A45E5 #8A7BED #B9B0F4

Accessibility & contrast

On white

6.15
#5A45E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5A45E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45E5
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45E5#FFFFFF#000000##FFFFFF
##5A45E51.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EA
Deuteranopia (green-blind)
#005BE2
Tritanopia (blue-blind)
#007090
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a45e5;
/* rgb */ color: rgb(90, 69, 229);
/* oklch */ color: oklch(51.7% 0.229 280.7);
Tailwind
colors: {
  custom: {
    50: '#987bee',
    500: '#5a45e5',
    950: '#000000',
  },
}
SCSS
$custom: #5a45e5;
$custom-light: #987bee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45e5",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 229
  },
  "hsl": {
    "h": 247.875,
    "s": 75.472,
    "l": 58.431
  },
  "oklch": {
    "l": 0.51708,
    "c": 0.22899,
    "h": 280.7
  },
  "luminance": 0.12087
}

Semantic roles & 50–950 ramp

primary
#5A45E5
secondary
#DAE3A3
accent
#F236D9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5A45E5

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

Preview Lab → · Contrast checker → · Palette generator →

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