#5A45E0#5A45E0

#5A45E0 is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.3% C 0.223 H 281.2°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#5A45E0
RGBrgb(90, 69, 224)
HSLhsl(248, 71%, 57%)
HSVhsv(248, 69%, 88%)
CMYKcmyk(59.8%, 69.2%, 0%, 12.2%)
CIE-LABlab(40.91, 51.06, -75.91)
CIE-LCHlch(40.91, 91.48, 303.93°)
OKLaboklab(51.26% 0.0435 -0.2188)
OKLCHoklch(51.26% 0.223 281.2)
XYZxyz(19.7949, 11.8103, 71.7431)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45E0 #CBE045
analogous
#457EE0 #5A45E0 #A845E0
triadic
#5A45E0 #E05A45 #45E05A
tetradic
#5A45E0 #E0457E #CBE045 #45E0A8
square
#5A45E0 #E0457E #CBE045 #45E0A8
split-complementary
#5A45E0 #E0A845 #7EE045
monochromatic
#291892 #3821C7 #5A45E0 #8979E9 #B7AEF1

Accessibility & contrast

On white

6.25
#5A45E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#5A45E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45E0
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45E0#FFFFFF#000000##FFFFFF
##5A45E01.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E5
Deuteranopia (green-blind)
#005BDD
Tritanopia (blue-blind)
#006E8D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5a45e0;
/* rgb */ color: rgb(90, 69, 224);
/* oklch */ color: oklch(51.3% 0.223 281.2);
Tailwind
colors: {
  custom: {
    50: '#977beb',
    500: '#5a45e0',
    950: '#000000',
  },
}
SCSS
$custom: #5a45e0;
$custom-light: #977beb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45e0",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 224
  },
  "hsl": {
    "h": 248.129,
    "s": 71.429,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51261,
    "c": 0.22303,
    "h": 281.2
  },
  "luminance": 0.11812
}

Semantic roles & 50–950 ramp

primary
#5A45E0
secondary
#D7E0A1
accent
#EE3AD6
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A45E0

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

Preview Lab → · Contrast checker → · Palette generator →

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