#5A5AED#5A5AED

#5A5AED is a mid, highly saturated blue. Relative luminance 0.156; OKLCH L 55.6% C 0.215 H 276.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5A5AED
RGBrgb(90, 90, 237)
HSLhsl(240, 80%, 64%)
HSVhsv(240, 62%, 93%)
CMYKcmyk(62%, 62%, 0%, 7.1%)
CIE-LABlab(46.44, 43.12, -74.22)
CIE-LCHlch(46.44, 85.84, 300.15°)
OKLaboklab(55.6% 0.0255 -0.2138)
OKLCHoklch(55.6% 0.215 276.8)
XYZxyz(23.1537, 15.5986, 81.8950)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5AED #EDED5A
analogous
#5AA4ED #5A5AED #A45AED
triadic
#5A5AED #ED5A5A #5AED5A
tetradic
#5A5AED #ED5AA4 #EDED5A #5AEDA4
square
#5A5AED #ED5AA4 #EDED5A #5AEDA4
split-complementary
#5A5AED #EDA45A #A4ED5A
monochromatic
#1414B8 #2323E7 #5A5AED #9191F3 #C8C8F9

Accessibility & contrast

On white

5.10
#5A5AED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#5A5AED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5AED
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5AED#FFFFFF#000000##FFFFFF
##5A5AED1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F2
Deuteranopia (green-blind)
#0068EA
Tritanopia (blue-blind)
#007F9B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a5aed;
/* rgb */ color: rgb(90, 90, 237);
/* oklch */ color: oklch(55.6% 0.215 276.8);
Tailwind
colors: {
  custom: {
    50: '#9789f4',
    500: '#5a5aed',
    950: '#000000',
  },
}
SCSS
$custom: #5a5aed;
$custom-light: #9789f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5aed",
  "rgb": {
    "r": 90,
    "g": 90,
    "b": 237
  },
  "hsl": {
    "h": 240,
    "s": 80.328,
    "l": 64.118
  },
  "oklch": {
    "l": 0.55596,
    "c": 0.2153,
    "h": 276.8
  },
  "luminance": 0.156
}

Semantic roles & 50–950 ramp

primary
#5A5AED
secondary
#EBEBB8
accent
#DD09DD
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A5AED

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

Preview Lab → · Contrast checker → · Palette generator →

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