#5B56CF#5B56CF

#5B56CF is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.6% C 0.181 H 280.0°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5B56CF
RGBrgb(91, 86, 207)
HSLhsl(242, 56%, 57%)
HSVhsv(242, 58%, 81%)
CMYKcmyk(56%, 58.5%, 0%, 18.8%)
CIE-LABlab(43.34, 36.09, -62.22)
CIE-LCHlch(43.34, 71.93, 300.12°)
OKLaboklab(52.62% 0.0315 -0.1785)
OKLCHoklch(52.62% 0.181 280)
XYZxyz(18.9011, 13.3835, 60.6067)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56CF #CACF56
analogous
#568ECF #5B56CF #9756CF
triadic
#5B56CF #CF5B56 #56CF5B
tetradic
#5B56CF #CF568E #CACF56 #56CF97
square
#5B56CF #CF568E #CACF56 #56CF97
split-complementary
#5B56CF #CF9756 #8ECF56
monochromatic
#2A2685 #3933B5 #5B56CF #8986DD #B8B5EA

Accessibility & contrast

On white

5.71
#5B56CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5B56CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56CF
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56CF#FFFFFF#000000##FFFFFF
##5B56CF1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#0062CD
Tritanopia (blue-blind)
#1E738A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b56cf;
/* rgb */ color: rgb(91, 86, 207);
/* oklch */ color: oklch(52.6% 0.181 280.0);
Tailwind
colors: {
  custom: {
    50: '#9386de',
    500: '#5b56cf',
    950: '#000000',
  },
}
SCSS
$custom: #5b56cf;
$custom-light: #9386de;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56cf",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 207
  },
  "hsl": {
    "h": 242.479,
    "s": 55.76,
    "l": 57.451
  },
  "oklch": {
    "l": 0.52622,
    "c": 0.18126,
    "h": 280
  },
  "luminance": 0.13385
}

Semantic roles & 50–950 ramp

primary
#5B56CF
secondary
#D7D9A8
accent
#DF49D9
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B56CF

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

Preview Lab → · Contrast checker → · Palette generator →

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