#5A45DF#5A45DF

#5A45DF is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.2% C 0.222 H 281.3°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5A45DF
RGBrgb(90, 69, 223)
HSLhsl(248, 71%, 57%)
HSVhsv(248, 69%, 87%)
CMYKcmyk(59.6%, 69.1%, 0%, 12.5%)
CIE-LABlab(40.83, 50.76, -75.48)
CIE-LCHlch(40.83, 90.96, 303.92°)
OKLaboklab(51.17% 0.0436 -0.2175)
OKLCHoklch(51.17% 0.222 281.3)
XYZxyz(19.6597, 11.7562, 71.0309)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45DF #CADF45
analogous
#457DDF #5A45DF #A745DF
triadic
#5A45DF #DF5A45 #45DF5A
tetradic
#5A45DF #DF457D #CADF45 #45DFA7
square
#5A45DF #DF457D #CADF45 #45DFA7
split-complementary
#5A45DF #DFA745 #7DDF45
monochromatic
#291991 #3822C5 #5A45DF #8879E8 #B7ADF1

Accessibility & contrast

On white

6.27
#5A45DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5A45DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A45DF
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45DF#FFFFFF#000000##FFFFFF
##5A45DF1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a45df;
/* rgb */ color: rgb(90, 69, 223);
/* oklch */ color: oklch(51.2% 0.222 281.3);
Tailwind
colors: {
  custom: {
    50: '#977bea',
    500: '#5a45df',
    950: '#000000',
  },
}
SCSS
$custom: #5a45df;
$custom-light: #977bea;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45df",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 223
  },
  "hsl": {
    "h": 248.182,
    "s": 70.642,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51172,
    "c": 0.22184,
    "h": 281.3
  },
  "luminance": 0.11758
}

Semantic roles & 50–950 ramp

primary
#5A45DF
secondary
#D7DFA1
accent
#ED3AD5
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A45DF

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

Preview Lab → · Contrast checker → · Palette generator →

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