#5B61EC#5B61EC

#5B61EC is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 56.8% C 0.205 H 275.8°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5B61EC
RGBrgb(91, 97, 236)
HSLhsl(238, 79%, 64%)
HSVhsv(238, 61%, 93%)
CMYKcmyk(61.4%, 58.9%, 0%, 7.5%)
CIE-LABlab(48.04, 38.77, -71.05)
CIE-LCHlch(48.04, 80.94, 298.62°)
OKLaboklab(56.77% 0.0208 -0.2044)
OKLCHoklch(56.77% 0.205 275.8)
XYZxyz(23.7245, 16.8278, 81.3385)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B61EC #ECE65B
analogous
#5BAAEC #5B61EC #9E5BEC
triadic
#5B61EC #EC5B61 #61EC5B
tetradic
#5B61EC #EC5BAA #ECE65B #5BEC9E
square
#5B61EC #EC5BAA #ECE65B #5BEC9E
split-complementary
#5B61EC #EC9E5B #AAEC5B
monochromatic
#151CB7 #242CE6 #5B61EC #9296F2 #C9CBF9

Accessibility & contrast

On white

4.81
#5B61EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#5B61EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B61EC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B61EC#FFFFFF#000000##FFFFFF
##5B61EC1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.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: #5b61ec;
/* rgb */ color: rgb(91, 97, 236);
/* oklch */ color: oklch(56.8% 0.205 275.8);
Tailwind
colors: {
  custom: {
    50: '#978ef3',
    500: '#5b61ec',
    950: '#000000',
  },
}
SCSS
$custom: #5b61ec;
$custom-light: #978ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b61ec",
  "rgb": {
    "r": 91,
    "g": 97,
    "b": 236
  },
  "hsl": {
    "h": 237.517,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.56766,
    "c": 0.20545,
    "h": 275.8
  },
  "luminance": 0.1683
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B61EC

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

Preview Lab → · Contrast checker → · Palette generator →

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