#5B56FF#5B56FF

#5B56FF is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.5% C 0.242 H 276.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5B56FF
RGBrgb(91, 86, 255)
HSLhsl(242, 100%, 67%)
HSVhsv(242, 66%, 100%)
CMYKcmyk(64.3%, 66.3%, 0%, 0%)
CIE-LABlab(47.10, 51.27, -83.21)
CIE-LCHlch(47.10, 97.74, 301.64°)
OKLaboklab(56.54% 0.028 -0.2401)
OKLCHoklch(56.54% 0.242 276.7)
XYZxyz(25.6863, 16.0975, 96.3419)
Luminance0.1610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56FF #FAFF56
analogous
#56A6FF #5B56FF #B056FF
triadic
#5B56FF #FF5B56 #56FF5B
tetradic
#5B56FF #FF56A6 #FAFF56 #56FFB0
square
#5B56FF #FF56A6 #FAFF56 #56FFB0
split-complementary
#5B56FF #FFB056 #A6FF56
monochromatic
#0600DB #2019FF #5B56FF #9693FF #D2D0FF

Accessibility & contrast

On white

4.98
#5B56FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#5B56FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56FF
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56FF#FFFFFF#000000##FFFFFF
##5B56FF1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077FF
Deuteranopia (green-blind)
#0068FC
Tritanopia (blue-blind)
#0083A3
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b56ff;
/* rgb */ color: rgb(91, 86, 255);
/* oklch */ color: oklch(56.5% 0.242 276.7);
Tailwind
colors: {
  custom: {
    50: '#9b87ff',
    500: '#5b56ff',
    950: '#000000',
  },
}
SCSS
$custom: #5b56ff;
$custom-light: #9b87ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56ff",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 255
  },
  "hsl": {
    "h": 241.775,
    "s": 100,
    "l": 66.863
  },
  "oklch": {
    "l": 0.56544,
    "c": 0.24175,
    "h": 276.7
  },
  "luminance": 0.161
}

Semantic roles & 50–950 ramp

primary
#5B56FF
secondary
#F2F3BD
accent
#E600DF
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B18
muted
#7F7C86

Preview Lab

Preview with #5B56FF

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

Preview Lab → · Contrast checker → · Palette generator →

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