#5A61E4#5A61E4

#5A61E4 is a mid, vivid blue. Relative luminance 0.163; OKLCH L 56.1% C 0.195 H 275.8°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5A61E4
RGBrgb(90, 97, 228)
HSLhsl(237, 72%, 62%)
HSVhsv(237, 61%, 89%)
CMYKcmyk(60.5%, 57.5%, 0%, 10.6%)
CIE-LABlab(47.40, 36.00, -67.60)
CIE-LCHlch(47.40, 76.59, 298.04°)
OKLaboklab(56.09% 0.0197 -0.1943)
OKLCHoklch(56.09% 0.195 275.8)
XYZxyz(22.4902, 16.3227, 75.3492)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A61E4 #E4DD5A
analogous
#5AA6E4 #5A61E4 #985AE4
triadic
#5A61E4 #E45A61 #61E45A
tetradic
#5A61E4 #E45AA6 #E4DD5A #5AE498
square
#5A61E4 #E45AA6 #E4DD5A #5AE498
split-complementary
#5A61E4 #E4985A #A6E45A
monochromatic
#1C23A8 #252FDB #5A61E4 #8F93ED #C3C6F5

Accessibility & contrast

On white

4.92
#5A61E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#5A61E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A61E4
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A61E4#FFFFFF#000000##FFFFFF
##5A61E41.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E8
Deuteranopia (green-blind)
#006BE1
Tritanopia (blue-blind)
#008199
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a61e4;
/* rgb */ color: rgb(90, 97, 228);
/* oklch */ color: oklch(56.1% 0.195 275.8);
Tailwind
colors: {
  custom: {
    50: '#958eed',
    500: '#5a61e4',
    950: '#000000',
  },
}
SCSS
$custom: #5a61e4;
$custom-light: #958eed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a61e4",
  "rgb": {
    "r": 90,
    "g": 97,
    "b": 228
  },
  "hsl": {
    "h": 236.957,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.56087,
    "c": 0.19528,
    "h": 275.8
  },
  "luminance": 0.16324
}

Semantic roles & 50–950 ramp

primary
#5A61E4
secondary
#E6E4B4
accent
#CA12D4
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5A61E4

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

Preview Lab → · Contrast checker → · Palette generator →

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