#5A5BFA#5A5BFA

#5A5BFA is a mid, highly saturated blue. Relative luminance 0.166; OKLCH L 56.8% C 0.230 H 275.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5A5BFA
RGBrgb(90, 91, 250)
HSLhsl(240, 94%, 67%)
HSVhsv(240, 64%, 98%)
CMYKcmyk(64%, 63.6%, 0%, 2%)
CIE-LABlab(47.70, 46.69, -79.46)
CIE-LCHlch(47.70, 92.16, 300.44°)
OKLaboklab(56.83% 0.0238 -0.2291)
OKLCHoklch(56.83% 0.23 275.9)
XYZxyz(25.2072, 16.5558, 92.2912)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BFA #FAF95A
analogous
#5AABFA #5A5BFA #A95AFA
triadic
#5A5BFA #FA5A5B #5BFA5A
tetradic
#5A5BFA #FA5AAB #FAF95A #5AFAA9
square
#5A5BFA #FA5AAB #FAF95A #5AFAA9
split-complementary
#5A5BFA #FAA95A #ABFA5A
monochromatic
#0608D3 #1F20F8 #5A5BFA #9596FC #D1D1FE

Accessibility & contrast

On white

4.87
#5A5BFA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A5BFA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BFA#FFFFFF#000000##FFFFFF
##5A5BFA1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078FF
Deuteranopia (green-blind)
#006AF7
Tritanopia (blue-blind)
#0084A2
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a5bfa;
/* rgb */ color: rgb(90, 91, 250);
/* oklch */ color: oklch(56.8% 0.230 275.9);
Tailwind
colors: {
  custom: {
    50: '#9a8afd',
    500: '#5a5bfa',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bfa;
$custom-light: #9a8afd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bfa",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 250
  },
  "hsl": {
    "h": 239.625,
    "s": 94.118,
    "l": 66.667
  },
  "oklch": {
    "l": 0.56831,
    "c": 0.23037,
    "h": 275.9
  },
  "luminance": 0.16558
}

Semantic roles & 50–950 ramp

primary
#5A5BFA
secondary
#F2F1BE
accent
#E400E6
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C18
muted
#7F7D86

Preview Lab

Preview with #5A5BFA

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

Preview Lab → · Contrast checker → · Palette generator →

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