#5A45E6#5A45E6

#5A45E6 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.8% C 0.230 H 280.6°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5A45E6
RGBrgb(90, 69, 230)
HSLhsl(248, 76%, 59%)
HSVhsv(248, 70%, 90%)
CMYKcmyk(60.9%, 70%, 0%, 9.8%)
CIE-LABlab(41.44, 52.86, -78.46)
CIE-LCHlch(41.44, 94.61, 303.97°)
OKLaboklab(51.8% 0.0424 -0.2262)
OKLCHoklch(51.8% 0.23 280.6)
XYZxyz(20.6230, 12.1416, 76.1044)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45E6 #D1E645
analogous
#4580E6 #5A45E6 #AA45E6
triadic
#5A45E6 #E65A45 #45E65A
tetradic
#5A45E6 #E64580 #D1E645 #45E6AA
square
#5A45E6 #E64580 #D1E645 #45E6AA
split-complementary
#5A45E6 #E6AA45 #80E645
monochromatic
#26159C #341CD2 #5A45E6 #8A7BED #BAB1F5

Accessibility & contrast

On white

6.12
#5A45E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5A45E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45E6
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45E6#FFFFFF#000000##FFFFFF
##5A45E61.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EB
Deuteranopia (green-blind)
#005CE3
Tritanopia (blue-blind)
#007191
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a45e6;
/* rgb */ color: rgb(90, 69, 230);
/* oklch */ color: oklch(51.8% 0.230 280.6);
Tailwind
colors: {
  custom: {
    50: '#987bef',
    500: '#5a45e6',
    950: '#000000',
  },
}
SCSS
$custom: #5a45e6;
$custom-light: #987bef;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45e6",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 247.826,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51798,
    "c": 0.23016,
    "h": 280.6
  },
  "luminance": 0.12143
}

Semantic roles & 50–950 ramp

primary
#5A45E6
secondary
#DBE3A4
accent
#F335DA
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5A45E6

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

Preview Lab → · Contrast checker → · Palette generator →

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