#5A56BB#5A56BB

#5A56BB is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.1% C 0.154 H 281.2°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5A56BB
RGBrgb(90, 86, 187)
HSLhsl(242, 43%, 54%)
HSVhsv(242, 54%, 73%)
CMYKcmyk(51.9%, 54%, 0%, 26.7%)
CIE-LABlab(41.87, 29.55, -53.00)
CIE-LCHlch(41.87, 60.68, 299.14°)
OKLaboklab(51.07% 0.03 -0.1514)
OKLCHoklch(51.07% 0.154 281.2)
XYZxyz(16.5111, 12.4162, 48.5306)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56BB #B7BB56
analogous
#5684BB #5A56BB #8C56BB
triadic
#5A56BB #BB5A56 #56BB5A
tetradic
#5A56BB #BB5684 #B7BB56 #56BB8C
square
#5A56BB #BB5684 #B7BB56 #56BB8C
split-complementary
#5A56BB #BB8C56 #84BB56
monochromatic
#2E2B6B #403D97 #5A56BB #8582CD #AFADDE

Accessibility & contrast

On white

6.03
#5A56BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5A56BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56BB
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56BB#FFFFFF#000000##FFFFFF
##5A56BB1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C66BE
Deuteranopia (green-blind)
#0E5FB9
Tritanopia (blue-blind)
#326D80
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a56bb;
/* rgb */ color: rgb(90, 86, 187);
/* oklch */ color: oklch(51.1% 0.154 281.2);
Tailwind
colors: {
  custom: {
    50: '#9085d0',
    500: '#5a56bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a56bb;
$custom-light: #9085d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56bb",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 187
  },
  "hsl": {
    "h": 242.376,
    "s": 42.616,
    "l": 53.529
  },
  "oklch": {
    "l": 0.51074,
    "c": 0.15435,
    "h": 281.2
  },
  "luminance": 0.12417
}

Semantic roles & 50–950 ramp

primary
#5A56BB
secondary
#CACCA1
accent
#D255CD
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5A56BB

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

Preview Lab → · Contrast checker → · Palette generator →

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