#5A45D7#5A45D7

#5A45D7 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.5% C 0.212 H 282.2°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5A45D7
RGBrgb(90, 69, 215)
HSLhsl(249, 65%, 56%)
HSVhsv(249, 68%, 84%)
CMYKcmyk(58.1%, 67.9%, 0%, 15.7%)
CIE-LABlab(40.14, 48.34, -72.03)
CIE-LCHlch(40.14, 86.75, 303.87°)
OKLaboklab(50.47% 0.0449 -0.2074)
OKLCHoklch(50.47% 0.212 282.2)
XYZxyz(18.6065, 11.3350, 65.4842)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45D7 #C2D745
analogous
#4579D7 #5A45D7 #A345D7
triadic
#5A45D7 #D75A45 #45D75A
tetradic
#5A45D7 #D74579 #C2D745 #45D7A3
square
#5A45D7 #D74579 #C2D745 #45D7A3
split-complementary
#5A45D7 #D7A345 #79D745
monochromatic
#2C1D85 #3C27B7 #5A45D7 #8777E2 #B3AAED

Accessibility & contrast

On white

6.43
#5A45D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5A45D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45D7
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45D7#FFFFFF#000000##FFFFFF
##5A45D71.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DB
Deuteranopia (green-blind)
#0059D4
Tritanopia (blue-blind)
#086B88
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a45d7;
/* rgb */ color: rgb(90, 69, 215);
/* oklch */ color: oklch(50.5% 0.212 282.2);
Tailwind
colors: {
  custom: {
    50: '#957ae4',
    500: '#5a45d7',
    950: '#000000',
  },
}
SCSS
$custom: #5a45d7;
$custom-light: #957ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45d7",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 215
  },
  "hsl": {
    "h": 248.63,
    "s": 64.602,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50469,
    "c": 0.21219,
    "h": 282.2
  },
  "luminance": 0.11336
}

Semantic roles & 50–950 ramp

primary
#5A45D7
secondary
#D2DA9E
accent
#E840D0
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5A45D7

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

Preview Lab → · Contrast checker → · Palette generator →

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