#5A5EF6#5A5EF6

#5A5EF6 is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 57.0% C 0.222 H 275.6°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5A5EF6
RGBrgb(90, 94, 246)
HSLhsl(238, 90%, 66%)
HSVhsv(238, 63%, 96%)
CMYKcmyk(63.4%, 61.8%, 0%, 3.5%)
CIE-LABlab(48.05, 43.65, -76.65)
CIE-LCHlch(48.05, 88.21, 299.66°)
OKLaboklab(56.99% 0.0218 -0.2209)
OKLCHoklch(56.99% 0.222 275.6)
XYZxyz(24.8483, 16.8308, 89.1101)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5EF6 #F6F25A
analogous
#5AACF6 #5A5EF6 #A45AF6
triadic
#5A5EF6 #F65A5E #5EF65A
tetradic
#5A5EF6 #F65AAC #F6F25A #5AF6A4
square
#5A5EF6 #F65AAC #F6F25A #5AF6A4
split-complementary
#5A5EF6 #F6A45A #ACF65A
monochromatic
#0B10CB #2025F3 #5A5EF6 #9497F9 #CECFFC

Accessibility & contrast

On white

4.81
#5A5EF6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#5A5EF6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5EF6
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5EF6#FFFFFF#000000##FFFFFF
##5A5EF61.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079FB
Deuteranopia (green-blind)
#006BF3
Tritanopia (blue-blind)
#0084A1
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a5ef6;
/* rgb */ color: rgb(90, 94, 246);
/* oklch */ color: oklch(57.0% 0.222 275.6);
Tailwind
colors: {
  custom: {
    50: '#998cfa',
    500: '#5a5ef6',
    950: '#000000',
  },
}
SCSS
$custom: #5a5ef6;
$custom-light: #998cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5ef6",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 246
  },
  "hsl": {
    "h": 238.462,
    "s": 89.655,
    "l": 65.882
  },
  "oklch": {
    "l": 0.56989,
    "c": 0.22196,
    "h": 275.6
  },
  "luminance": 0.16833
}

Semantic roles & 50–950 ramp

primary
#5A5EF6
secondary
#F0EEBC
accent
#E000E6
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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