#5A4BE1#5A4BE1

#5A4BE1 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.2% C 0.218 H 280.2°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5A4BE1
RGBrgb(90, 75, 225)
HSLhsl(246, 71%, 59%)
HSVhsv(246, 67%, 88%)
CMYKcmyk(60%, 66.7%, 0%, 11.8%)
CIE-LABlab(42.22, 48.03, -74.34)
CIE-LCHlch(42.22, 88.51, 302.87°)
OKLaboklab(52.22% 0.0387 -0.2142)
OKLCHoklch(52.22% 0.218 280.2)
XYZxyz(20.3188, 12.6406, 72.5887)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BE1 #D2E14B
analogous
#4B87E1 #5A4BE1 #A54BE1
triadic
#5A4BE1 #E15A4B #4BE15A
tetradic
#5A4BE1 #E14B87 #D2E14B #4BE1A5
square
#5A4BE1 #E14B87 #D2E14B #4BE1A5
split-complementary
#5A4BE1 #E1A54B #87E14B
monochromatic
#261998 #3322CD #5A4BE1 #8A7FEA #BAB4F2

Accessibility & contrast

On white

5.95
#5A4BE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5A4BE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BE1
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BE1#FFFFFF#000000##FFFFFF
##5A4BE11.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E6
Deuteranopia (green-blind)
#005EDE
Tritanopia (blue-blind)
#007290
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a4be1;
/* rgb */ color: rgb(90, 75, 225);
/* oklch */ color: oklch(52.2% 0.218 280.2);
Tailwind
colors: {
  custom: {
    50: '#967fec',
    500: '#5a4be1',
    950: '#000000',
  },
}
SCSS
$custom: #5a4be1;
$custom-light: #967fec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4be1",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 225
  },
  "hsl": {
    "h": 246,
    "s": 71.429,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52223,
    "c": 0.21764,
    "h": 280.2
  },
  "luminance": 0.12642
}

Semantic roles & 50–950 ramp

primary
#5A4BE1
secondary
#DCE1A6
accent
#EE3ADC
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5A4BE1

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

Preview Lab → · Contrast checker → · Palette generator →

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