#5B56F5#5B56F5

#5B56F5 is a mid, highly saturated blue. Relative luminance 0.155; OKLCH L 55.7% C 0.230 H 277.3°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5B56F5
RGBrgb(91, 86, 245)
HSLhsl(242, 89%, 65%)
HSVhsv(242, 65%, 96%)
CMYKcmyk(62.9%, 64.9%, 0%, 3.9%)
CIE-LABlab(46.27, 48.14, -78.99)
CIE-LCHlch(46.27, 92.50, 301.36°)
OKLaboklab(55.69% 0.0291 -0.2278)
OKLCHoklch(55.69% 0.23 277.3)
XYZxyz(24.1183, 15.4703, 88.0836)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56F5 #F0F556
analogous
#56A0F5 #5B56F5 #AB56F5
triadic
#5B56F5 #F55B56 #56F55B
tetradic
#5B56F5 #F556A0 #F0F556 #56F5AB
square
#5B56F5 #F556A0 #F0F556 #56F5AB
split-complementary
#5B56F5 #F5AB56 #A0F556
monochromatic
#110CC5 #231CF2 #5B56F5 #9390F8 #CBCAFC

Accessibility & contrast

On white

5.13
#5B56F5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#5B56F5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56F5
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56F5#FFFFFF#000000##FFFFFF
##5B56F51.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074FA
Deuteranopia (green-blind)
#0067F2
Tritanopia (blue-blind)
#007F9E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b56f5;
/* rgb */ color: rgb(91, 86, 245);
/* oklch */ color: oklch(55.7% 0.230 277.3);
Tailwind
colors: {
  custom: {
    50: '#9a86fa',
    500: '#5b56f5',
    950: '#000000',
  },
}
SCSS
$custom: #5b56f5;
$custom-light: #9a86fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56f5",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 245
  },
  "hsl": {
    "h": 241.887,
    "s": 88.827,
    "l": 64.902
  },
  "oklch": {
    "l": 0.55687,
    "c": 0.22962,
    "h": 277.3
  },
  "luminance": 0.15472
}

Semantic roles & 50–950 ramp

primary
#5B56F5
secondary
#EDEFB8
accent
#E500DE
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B56F5

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

Preview Lab → · Contrast checker → · Palette generator →

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