#5A61EC#5A61EC

#5A61EC is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 56.7% C 0.206 H 275.5°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#5A61EC
RGBrgb(90, 97, 236)
HSLhsl(237, 79%, 64%)
HSVhsv(237, 62%, 93%)
CMYKcmyk(61.9%, 58.9%, 0%, 7.5%)
CIE-LABlab(47.98, 38.61, -71.16)
CIE-LCHlch(47.98, 80.96, 298.49°)
OKLaboklab(56.7% 0.0197 -0.2047)
OKLCHoklch(56.7% 0.206 275.5)
XYZxyz(23.6265, 16.7773, 81.3339)
Luminance0.1678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A61EC #ECE55A
analogous
#5AAAEC #5A61EC #9C5AEC
triadic
#5A61EC #EC5A61 #61EC5A
tetradic
#5A61EC #EC5AAA #ECE55A #5AEC9C
square
#5A61EC #EC5AAA #ECE55A #5AEC9C
split-complementary
#5A61EC #EC9C5A #AAEC5A
monochromatic
#151DB7 #232CE6 #5A61EC #9196F2 #C8CAF9

Accessibility & contrast

On white

4.82
#5A61EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#5A61EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A61EC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A61EC#FFFFFF#000000##FFFFFF
##5A61EC1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#006CE9
Tritanopia (blue-blind)
#00839D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a61ec;
/* rgb */ color: rgb(90, 97, 236);
/* oklch */ color: oklch(56.7% 0.206 275.5);
Tailwind
colors: {
  custom: {
    50: '#978ef3',
    500: '#5a61ec',
    950: '#000000',
  },
}
SCSS
$custom: #5a61ec;
$custom-light: #978ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a61ec",
  "rgb": {
    "r": 90,
    "g": 97,
    "b": 236
  },
  "hsl": {
    "h": 237.123,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.56702,
    "c": 0.20568,
    "h": 275.5
  },
  "luminance": 0.16779
}

Semantic roles & 50–950 ramp

primary
#5A61EC
secondary
#EBE8B7
accent
#D20ADC
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5A61EC

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

Preview Lab → · Contrast checker → · Palette generator →

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