#5A5FED#5A5FED

#5A5FED is a mid, highly saturated blue. Relative luminance 0.165; OKLCH L 56.4% C 0.209 H 275.9°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#5A5FED
RGBrgb(90, 95, 237)
HSLhsl(238, 80%, 64%)
HSVhsv(238, 62%, 93%)
CMYKcmyk(62%, 59.9%, 0%, 7.1%)
CIE-LABlab(47.59, 40.14, -72.36)
CIE-LCHlch(47.59, 82.75, 299.02°)
OKLaboklab(56.44% 0.0213 -0.2083)
OKLCHoklch(56.44% 0.209 275.9)
XYZxyz(23.5897, 16.4706, 82.0404)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FED #EDE85A
analogous
#5AA9ED #5A5FED #9F5AED
triadic
#5A5FED #ED5A5F #5FED5A
tetradic
#5A5FED #ED5AA9 #EDE85A #5AED9F
square
#5A5FED #ED5AA9 #EDE85A #5AED9F
split-complementary
#5A5FED #ED9F5A #A9ED5A
monochromatic
#141AB8 #2329E7 #5A5FED #9195F3 #C8CAF9

Accessibility & contrast

On white

4.89
#5A5FED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#5A5FED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FED
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FED#FFFFFF#000000##FFFFFF
##5A5FED1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F2
Deuteranopia (green-blind)
#006BEA
Tritanopia (blue-blind)
#00829D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a5fed;
/* rgb */ color: rgb(90, 95, 237);
/* oklch */ color: oklch(56.4% 0.209 275.9);
Tailwind
colors: {
  custom: {
    50: '#978cf4',
    500: '#5a5fed',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fed;
$custom-light: #978cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fed",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 237
  },
  "hsl": {
    "h": 237.959,
    "s": 80.328,
    "l": 64.118
  },
  "oklch": {
    "l": 0.56436,
    "c": 0.20937,
    "h": 275.9
  },
  "luminance": 0.16473
}

Semantic roles & 50–950 ramp

primary
#5A5FED
secondary
#EBE9B8
accent
#D509DD
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A5FED

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

Preview Lab → · Contrast checker → · Palette generator →

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