#5A61EF#5A61EF

#5A61EF is a mid, highly saturated blue. Relative luminance 0.170; OKLCH L 56.9% C 0.210 H 275.4°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5A61EF
RGBrgb(90, 97, 239)
HSLhsl(237, 82%, 65%)
HSVhsv(237, 62%, 94%)
CMYKcmyk(62.3%, 59.4%, 0%, 6.3%)
CIE-LABlab(48.20, 39.59, -72.48)
CIE-LCHlch(48.20, 82.59, 298.64°)
OKLaboklab(56.94% 0.0196 -0.2086)
OKLCHoklch(56.94% 0.21 275.4)
XYZxyz(24.0660, 16.9531, 83.6487)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A61EF #EFE85A
analogous
#5AACEF #5A61EF #9E5AEF
triadic
#5A61EF #EF5A61 #61EF5A
tetradic
#5A61EF #EF5AAC #EFE85A #5AEF9E
square
#5A61EF #EF5AAC #EFE85A #5AEF9E
split-complementary
#5A61EF #EF9E5A #ACEF5A
monochromatic
#121ABC #222CEA #5A61EF #9296F4 #CACCFA

Accessibility & contrast

On white

4.78
#5A61EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#5A61EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A61EF
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A61EF#FFFFFF#000000##FFFFFF
##5A61EF1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079F4
Deuteranopia (green-blind)
#006CEC
Tritanopia (blue-blind)
#00849F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a61ef;
/* rgb */ color: rgb(90, 97, 239);
/* oklch */ color: oklch(56.9% 0.210 275.4);
Tailwind
colors: {
  custom: {
    50: '#978ef5',
    500: '#5a61ef',
    950: '#000000',
  },
}
SCSS
$custom: #5a61ef;
$custom-light: #978ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a61ef",
  "rgb": {
    "r": 90,
    "g": 97,
    "b": 239
  },
  "hsl": {
    "h": 237.181,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.56937,
    "c": 0.20954,
    "h": 275.4
  },
  "luminance": 0.16955
}

Semantic roles & 50–950 ramp

primary
#5A61EF
secondary
#ECEAB9
accent
#D507DF
background
#FAF8FF
surface
#F3F0FF
border
#CDCBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A61EF

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

Preview Lab → · Contrast checker → · Palette generator →

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