#5A5FEE#5A5FEE

#5A5FEE is a mid, highly saturated blue. Relative luminance 0.165; OKLCH L 56.5% C 0.211 H 275.8°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#5A5FEE
RGBrgb(90, 95, 238)
HSLhsl(238, 81%, 64%)
HSVhsv(238, 62%, 93%)
CMYKcmyk(62.2%, 60.1%, 0%, 6.7%)
CIE-LABlab(47.66, 40.47, -72.80)
CIE-LCHlch(47.66, 83.29, 299.07°)
OKLaboklab(56.52% 0.0213 -0.2096)
OKLCHoklch(56.52% 0.211 275.8)
XYZxyz(23.7362, 16.5292, 82.8119)
Luminance0.1653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FEE #EEE95A
analogous
#5AA9EE #5A5FEE #9F5AEE
triadic
#5A5FEE #EE5A5F #5FEE5A
tetradic
#5A5FEE #EE5AA9 #EEE95A #5AEE9F
square
#5A5FEE #EE5AA9 #EEE95A #5AEE9F
split-complementary
#5A5FEE #EE9F5A #A9EE5A
monochromatic
#1319BA #2329E8 #5A5FEE #9195F4 #C9CBF9

Accessibility & contrast

On white

4.88
#5A5FEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#5A5FEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FEE
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FEE#FFFFFF#000000##FFFFFF
##5A5FEE1.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F3
Deuteranopia (green-blind)
#006BEB
Tritanopia (blue-blind)
#00829D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a5fee;
/* rgb */ color: rgb(90, 95, 238);
/* oklch */ color: oklch(56.5% 0.211 275.8);
Tailwind
colors: {
  custom: {
    50: '#978cf5',
    500: '#5a5fee',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fee;
$custom-light: #978cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fee",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 238
  },
  "hsl": {
    "h": 237.973,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.56515,
    "c": 0.21065,
    "h": 275.8
  },
  "luminance": 0.16531
}

Semantic roles & 50–950 ramp

primary
#5A5FEE
secondary
#ECEAB8
accent
#D608DE
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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