#5A45E8#5A45E8

#5A45E8 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 52.0% C 0.233 H 280.4°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#5A45E8
RGBrgb(90, 69, 232)
HSLhsl(248, 78%, 59%)
HSVhsv(248, 70%, 91%)
CMYKcmyk(61.2%, 70.3%, 0%, 9%)
CIE-LABlab(41.62, 53.46, -79.30)
CIE-LCHlch(41.62, 95.64, 303.99°)
OKLaboklab(51.98% 0.0421 -0.2287)
OKLCHoklch(51.98% 0.233 280.4)
XYZxyz(20.9055, 12.2545, 77.5920)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45E8 #D3E845
analogous
#4582E8 #5A45E8 #AC45E8
triadic
#5A45E8 #E85A45 #45E85A
tetradic
#5A45E8 #E84582 #D3E845 #45E8AC
square
#5A45E8 #E84582 #D3E845 #45E8AC
split-complementary
#5A45E8 #E8AC45 #82E845
monochromatic
#26149F #321AD5 #5A45E8 #8A7BEF #BBB2F5

Accessibility & contrast

On white

6.08
#5A45E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5A45E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45E8
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45E8#FFFFFF#000000##FFFFFF
##5A45E81.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068ED
Deuteranopia (green-blind)
#005CE5
Tritanopia (blue-blind)
#007192
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a45e8;
/* rgb */ color: rgb(90, 69, 232);
/* oklch */ color: oklch(52.0% 0.233 280.4);
Tailwind
colors: {
  custom: {
    50: '#987bf1',
    500: '#5a45e8',
    950: '#000000',
  },
}
SCSS
$custom: #5a45e8;
$custom-light: #987bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45e8",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 232
  },
  "hsl": {
    "h": 247.73,
    "s": 77.99,
    "l": 59.02
  },
  "oklch": {
    "l": 0.51979,
    "c": 0.23253,
    "h": 280.4
  },
  "luminance": 0.12256
}

Semantic roles & 50–950 ramp

primary
#5A45E8
secondary
#DCE4A4
accent
#F433DC
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5A45E8

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

Preview Lab → · Contrast checker → · Palette generator →

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