#5A5ADD#5A5ADD

#5A5ADD is a mid, vivid blue. Relative luminance 0.147; OKLCH L 54.3% C 0.195 H 277.7°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5A5ADD
RGBrgb(90, 90, 221)
HSLhsl(240, 66%, 61%)
HSVhsv(240, 59%, 87%)
CMYKcmyk(59.3%, 59.3%, 0%, 13.3%)
CIE-LABlab(45.23, 37.97, -67.16)
CIE-LCHlch(45.23, 77.15, 299.49°)
OKLaboklab(54.32% 0.0262 -0.193)
OKLCHoklch(54.32% 0.195 277.7)
XYZxyz(20.9196, 14.7049, 70.1285)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5ADD #DDDD5A
analogous
#5A9BDD #5A5ADD #9B5ADD
triadic
#5A5ADD #DD5A5A #5ADD5A
tetradic
#5A5ADD #DD5A9B #DDDD5A #5ADD9B
square
#5A5ADD #DD5A9B #DDDD5A #5ADD9B
split-complementary
#5A5ADD #DD9B5A #9BDD5A
monochromatic
#20209C #2B2BCF #5A5ADD #8D8DE7 #BFBFF2

Accessibility & contrast

On white

5.33
#5A5ADD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5A5ADD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5ADD
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5ADD#FFFFFF#000000##FFFFFF
##5A5ADD1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E1
Deuteranopia (green-blind)
#0066DA
Tritanopia (blue-blind)
#007A93
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a5add;
/* rgb */ color: rgb(90, 90, 221);
/* oklch */ color: oklch(54.3% 0.195 277.7);
Tailwind
colors: {
  custom: {
    50: '#9589e8',
    500: '#5a5add',
    950: '#000000',
  },
}
SCSS
$custom: #5a5add;
$custom-light: #9589e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5add",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 221
  },
  "hsl": {
    "h": 240,
    "s": 65.829,
    "l": 60.98
  },
  "oklch": {
    "l": 0.54322,
    "c": 0.19479,
    "h": 277.7
  },
  "luminance": 0.14706
}

Semantic roles & 50–950 ramp

primary
#5A5ADD
secondary
#E2E2B1
accent
#CE18CE
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5A5ADD

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

Preview Lab → · Contrast checker → · Palette generator →

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