#5B56E2#5B56E2

#5B56E2 is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.1% C 0.206 H 278.6°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5B56E2
RGBrgb(91, 86, 226)
HSLhsl(242, 71%, 61%)
HSVhsv(242, 62%, 89%)
CMYKcmyk(59.7%, 61.9%, 0%, 11.4%)
CIE-LABlab(44.76, 42.13, -70.76)
CIE-LCHlch(44.76, 82.35, 300.77°)
OKLaboklab(54.11% 0.0307 -0.2036)
OKLCHoklch(54.11% 0.206 278.6)
XYZxyz(21.3653, 14.3691, 73.5844)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56E2 #DDE256
analogous
#5697E2 #5B56E2 #A156E2
triadic
#5B56E2 #E25B56 #56E25B
tetradic
#5B56E2 #E25697 #DDE256 #56E2A1
square
#5B56E2 #E25697 #DDE256 #56E2A1
split-complementary
#5B56E2 #E2A156 #97E256
monochromatic
#211CA2 #2B25D6 #5B56E2 #8E8AEB #C0BEF4

Accessibility & contrast

On white

5.42
#5B56E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#5B56E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56E2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56E2#FFFFFF#000000##FFFFFF
##5B56E21.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E6
Deuteranopia (green-blind)
#0064DF
Tritanopia (blue-blind)
#007994
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b56e2;
/* rgb */ color: rgb(91, 86, 226);
/* oklch */ color: oklch(54.1% 0.206 278.6);
Tailwind
colors: {
  custom: {
    50: '#9686ec',
    500: '#5b56e2',
    950: '#000000',
  },
}
SCSS
$custom: #5b56e2;
$custom-light: #9686ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56e2",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 226
  },
  "hsl": {
    "h": 242.143,
    "s": 70.707,
    "l": 61.176
  },
  "oklch": {
    "l": 0.54114,
    "c": 0.2059,
    "h": 278.6
  },
  "luminance": 0.14371
}

Semantic roles & 50–950 ramp

primary
#5B56E2
secondary
#E2E4B0
accent
#D313CC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5B56E2

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

Preview Lab → · Contrast checker → · Palette generator →

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