#5A54ED#5A54ED

#5A54ED is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 54.6% C 0.222 H 277.8°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#5A54ED
RGBrgb(90, 84, 237)
HSLhsl(242, 81%, 63%)
HSVhsv(242, 65%, 93%)
CMYKcmyk(62%, 64.6%, 0%, 7.1%)
CIE-LABlab(45.12, 46.63, -76.39)
CIE-LCHlch(45.12, 89.49, 301.40°)
OKLaboklab(54.63% 0.0303 -0.2202)
OKLCHoklch(54.63% 0.222 277.8)
XYZxyz(22.6679, 14.6269, 81.7331)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A54ED #E7ED54
analogous
#549AED #5A54ED #A654ED
triadic
#5A54ED #ED5A54 #54ED5A
tetradic
#5A54ED #ED549A #E7ED54 #54EDA6
square
#5A54ED #ED549A #E7ED54 #54EDA6
split-complementary
#5A54ED #EDA654 #9AED54
monochromatic
#1913B4 #251DE7 #5A54ED #8F8BF3 #C5C3F9

Accessibility & contrast

On white

5.35
#5A54ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5A54ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A54ED
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A54ED#FFFFFF#000000##FFFFFF
##5A54ED1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F2
Deuteranopia (green-blind)
#0064EA
Tritanopia (blue-blind)
#007B99
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a54ed;
/* rgb */ color: rgb(90, 84, 237);
/* oklch */ color: oklch(54.6% 0.222 277.8);
Tailwind
colors: {
  custom: {
    50: '#9885f4',
    500: '#5a54ed',
    950: '#000000',
  },
}
SCSS
$custom: #5a54ed;
$custom-light: #9885f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a54ed",
  "rgb": {
    "r": 90,
    "g": 84,
    "b": 237
  },
  "hsl": {
    "h": 242.353,
    "s": 80.952,
    "l": 62.941
  },
  "oklch": {
    "l": 0.5463,
    "c": 0.22223,
    "h": 277.8
  },
  "luminance": 0.14629
}

Semantic roles & 50–950 ramp

primary
#5A54ED
secondary
#E8EAB3
accent
#DD08D5
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A54ED

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

Preview Lab → · Contrast checker → · Palette generator →

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