#5A4CE2#5A4CE2

#5A4CE2 is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.5% C 0.218 H 280.0°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5A4CE2
RGBrgb(90, 76, 226)
HSLhsl(246, 72%, 59%)
HSVhsv(246, 66%, 89%)
CMYKcmyk(60.2%, 66.4%, 0%, 11.4%)
CIE-LABlab(42.51, 47.78, -74.43)
CIE-LCHlch(42.51, 88.45, 302.70°)
OKLaboklab(52.46% 0.0378 -0.2144)
OKLCHoklch(52.46% 0.218 280)
XYZxyz(20.5240, 12.8320, 73.3321)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CE2 #D4E24C
analogous
#4C89E2 #5A4CE2 #A54CE2
triadic
#5A4CE2 #E25A4C #4CE25A
tetradic
#5A4CE2 #E24C89 #D4E24C #4CE2A5
square
#5A4CE2 #E24C89 #D4E24C #4CE2A5
split-complementary
#5A4CE2 #E2A54C #89E24C
monochromatic
#25199B #3222CF #5A4CE2 #8B81EB #BBB5F3

Accessibility & contrast

On white

5.89
#5A4CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5A4CE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CE2
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CE2#FFFFFF#000000##FFFFFF
##5A4CE21.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE7
Deuteranopia (green-blind)
#005FDF
Tritanopia (blue-blind)
#007391
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a4ce2;
/* rgb */ color: rgb(90, 76, 226);
/* oklch */ color: oklch(52.5% 0.218 280.0);
Tailwind
colors: {
  custom: {
    50: '#977fec',
    500: '#5a4ce2',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ce2;
$custom-light: #977fec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ce2",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 226
  },
  "hsl": {
    "h": 245.6,
    "s": 72.115,
    "l": 59.216
  },
  "oklch": {
    "l": 0.5246,
    "c": 0.21774,
    "h": 280
  },
  "luminance": 0.12834
}

Semantic roles & 50–950 ramp

primary
#5A4CE2
secondary
#DDE2A8
accent
#EF39DE
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5A4CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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