#5B56DC#5B56DC

#5B56DC is a mid, vivid blue. Relative luminance 0.140; OKLCH L 53.6% C 0.198 H 279.0°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5B56DC
RGBrgb(91, 86, 220)
HSLhsl(242, 66%, 60%)
HSVhsv(242, 61%, 86%)
CMYKcmyk(58.6%, 60.9%, 0%, 13.7%)
CIE-LABlab(44.30, 40.22, -68.09)
CIE-LCHlch(44.30, 79.09, 300.57°)
OKLaboklab(53.63% 0.0311 -0.1958)
OKLCHoklch(53.63% 0.198 279)
XYZxyz(20.5563, 14.0456, 69.3241)
Luminance0.1405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56DC #D7DC56
analogous
#5694DC #5B56DC #9E56DC
triadic
#5B56DC #DC5B56 #56DC5B
tetradic
#5B56DC #DC5694 #D7DC56 #56DC9E
square
#5B56DC #DC5694 #D7DC56 #56DC9E
split-complementary
#5B56DC #DC9E56 #94DC56
monochromatic
#242098 #302ACB #5B56DC #8C89E6 #BDBBF1

Accessibility & contrast

On white

5.51
#5B56DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5B56DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56DC
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56DC#FFFFFF#000000##FFFFFF
##5B56DC1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#0063D9
Tritanopia (blue-blind)
#007791
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5b56dc;
/* rgb */ color: rgb(91, 86, 220);
/* oklch */ color: oklch(53.6% 0.198 279.0);
Tailwind
colors: {
  custom: {
    50: '#9586e8',
    500: '#5b56dc',
    950: '#000000',
  },
}
SCSS
$custom: #5b56dc;
$custom-light: #9586e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56dc",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 220
  },
  "hsl": {
    "h": 242.239,
    "s": 65.686,
    "l": 60
  },
  "oklch": {
    "l": 0.53634,
    "c": 0.19823,
    "h": 279
  },
  "luminance": 0.14047
}

Semantic roles & 50–950 ramp

primary
#5B56DC
secondary
#DFE1AD
accent
#E93FE2
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5B56DC

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

Preview Lab → · Contrast checker → · Palette generator →

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