#5A5FE8#5A5FE8

#5A5FE8 is a mid, highly saturated blue. Relative luminance 0.162; OKLCH L 56.0% C 0.203 H 276.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5A5FE8
RGBrgb(90, 95, 232)
HSLhsl(238, 76%, 63%)
HSVhsv(238, 61%, 91%)
CMYKcmyk(61.2%, 59.1%, 0%, 9%)
CIE-LABlab(47.21, 38.52, -70.15)
CIE-LCHlch(47.21, 80.03, 298.77°)
OKLaboklab(56.04% 0.0215 -0.2018)
OKLCHoklch(56.04% 0.203 276.1)
XYZxyz(22.8694, 16.1825, 78.2467)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FE8 #E8E35A
analogous
#5AA6E8 #5A5FE8 #9C5AE8
triadic
#5A5FE8 #E85A5F #5FE85A
tetradic
#5A5FE8 #E85AA6 #E8E35A #5AE89C
square
#5A5FE8 #E85AA6 #E8E35A #5AE89C
split-complementary
#5A5FE8 #E89C5A #A6E85A
monochromatic
#181EAF #242BE1 #5A5FE8 #9093EF #C5C7F7

Accessibility & contrast

On white

4.96
#5A5FE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#5A5FE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FE8
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FE8#FFFFFF#000000##FFFFFF
##5A5FE81.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076ED
Deuteranopia (green-blind)
#006AE5
Tritanopia (blue-blind)
#00809A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a5fe8;
/* rgb */ color: rgb(90, 95, 232);
/* oklch */ color: oklch(56.0% 0.203 276.1);
Tailwind
colors: {
  custom: {
    50: '#968cf0',
    500: '#5a5fe8',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fe8;
$custom-light: #968cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fe8",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 232
  },
  "hsl": {
    "h": 237.887,
    "s": 75.532,
    "l": 63.137
  },
  "oklch": {
    "l": 0.56044,
    "c": 0.20294,
    "h": 276.1
  },
  "luminance": 0.16184
}

Semantic roles & 50–950 ramp

primary
#5A5FE8
secondary
#E8E7B5
accent
#D10ED8
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C17
muted
#7E7D85

Preview Lab

Preview with #5A5FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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