#5A45F1#5A45F1

#5A45F1 is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.8% C 0.243 H 279.6°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5A45F1
RGBrgb(90, 69, 241)
HSLhsl(247, 86%, 61%)
HSVhsv(247, 71%, 95%)
CMYKcmyk(62.7%, 71.4%, 0%, 5.5%)
CIE-LABlab(42.43, 56.15, -83.05)
CIE-LCHlch(42.43, 100.25, 304.06°)
OKLaboklab(52.8% 0.0404 -0.2397)
OKLCHoklch(52.8% 0.243 279.6)
XYZxyz(22.2167, 12.7790, 84.4979)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45F1 #DCF145
analogous
#4586F1 #5A45F1 #B045F1
triadic
#5A45F1 #F15A45 #45F15A
tetradic
#5A45F1 #F14586 #DCF145 #45F1B0
square
#5A45F1 #F14586 #DCF145 #45F1B0
split-complementary
#5A45F1 #F1B045 #86F145
monochromatic
#210DAE #2C11E7 #5A45F1 #8C7EF5 #BFB7FA

Accessibility & contrast

On white

5.91
#5A45F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5A45F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45F1
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45F1#FFFFFF#000000##FFFFFF
##5A45F11.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BF6
Deuteranopia (green-blind)
#005DEE
Tritanopia (blue-blind)
#007597
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a45f1;
/* rgb */ color: rgb(90, 69, 241);
/* oklch */ color: oklch(52.8% 0.243 279.6);
Tailwind
colors: {
  custom: {
    50: '#9a7bf7',
    500: '#5a45f1',
    950: '#000000',
  },
}
SCSS
$custom: #5a45f1;
$custom-light: #9a7bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45f1",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 241
  },
  "hsl": {
    "h": 247.326,
    "s": 86,
    "l": 60.784
  },
  "oklch": {
    "l": 0.52802,
    "c": 0.24304,
    "h": 279.6
  },
  "luminance": 0.12781
}

Semantic roles & 50–950 ramp

primary
#5A45F1
secondary
#E2E9A8
accent
#E303C7
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #5A45F1

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

Preview Lab → · Contrast checker → · Palette generator →

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