#5A4CE3#5A4CE3

#5A4CE3 is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.5% C 0.219 H 279.9°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5A4CE3
RGBrgb(90, 76, 227)
HSLhsl(246, 73%, 59%)
HSVhsv(246, 67%, 89%)
CMYKcmyk(60.4%, 66.5%, 0%, 11%)
CIE-LABlab(42.59, 48.08, -74.86)
CIE-LCHlch(42.59, 88.98, 302.71°)
OKLaboklab(52.55% 0.0376 -0.2157)
OKLCHoklch(52.55% 0.219 279.9)
XYZxyz(20.6616, 12.8871, 74.0568)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CE3 #D5E34C
analogous
#4C8AE3 #5A4CE3 #A64CE3
triadic
#5A4CE3 #E35A4C #4CE35A
tetradic
#5A4CE3 #E34C8A #D5E34C #4CE3A6
square
#5A4CE3 #E34C8A #D5E34C #4CE3A6
split-complementary
#5A4CE3 #E3A64C #8AE34C
monochromatic
#25189C #3121D1 #5A4CE3 #8B81EB #BCB6F4

Accessibility & contrast

On white

5.87
#5A4CE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5A4CE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CE3
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CE3#FFFFFF#000000##FFFFFF
##5A4CE31.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE8
Deuteranopia (green-blind)
#005FE0
Tritanopia (blue-blind)
#007391
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5a4ce3;
/* rgb */ color: rgb(90, 76, 227);
/* oklch */ color: oklch(52.5% 0.219 279.9);
Tailwind
colors: {
  custom: {
    50: '#977fed',
    500: '#5a4ce3',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ce3;
$custom-light: #977fed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ce3",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 227
  },
  "hsl": {
    "h": 245.563,
    "s": 72.947,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52546,
    "c": 0.21897,
    "h": 279.9
  },
  "luminance": 0.12889
}

Semantic roles & 50–950 ramp

primary
#5A4CE3
secondary
#DDE3A8
accent
#F038DF
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5A4CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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