#5A56CB#5A56CB

#5A56CB is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.2% C 0.176 H 279.9°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#5A56CB
RGBrgb(90, 86, 203)
HSLhsl(242, 53%, 57%)
HSVhsv(242, 58%, 80%)
CMYKcmyk(55.7%, 57.6%, 0%, 20.4%)
CIE-LABlab(42.97, 34.63, -60.50)
CIE-LCHlch(42.97, 69.71, 299.79°)
OKLaboklab(52.24% 0.0303 -0.1735)
OKLCHoklch(52.24% 0.176 279.9)
XYZxyz(18.3204, 13.1398, 58.0592)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56CB #C7CB56
analogous
#568DCB #5A56CB #9556CB
triadic
#5A56CB #CB5A56 #56CB5A
tetradic
#5A56CB #CB568D #C7CB56 #56CB95
square
#5A56CB #CB568D #C7CB56 #56CB95
split-complementary
#5A56CB #CB9556 #8DCB56
monochromatic
#2A277F #3A36AE #5A56CB #8885D9 #B5B4E8

Accessibility & contrast

On white

5.79
#5A56CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5A56CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56CB
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56CB#FFFFFF#000000##FFFFFF
##5A56CB1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#0061C9
Tritanopia (blue-blind)
#207288
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5a56cb;
/* rgb */ color: rgb(90, 86, 203);
/* oklch */ color: oklch(52.2% 0.176 279.9);
Tailwind
colors: {
  custom: {
    50: '#9286dc',
    500: '#5a56cb',
    950: '#000000',
  },
}
SCSS
$custom: #5a56cb;
$custom-light: #9286dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56cb",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 242.051,
    "s": 52.941,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52244,
    "c": 0.17611,
    "h": 279.9
  },
  "luminance": 0.13141
}

Semantic roles & 50–950 ramp

primary
#5A56CB
secondary
#D5D6A6
accent
#DC4BD7
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A56CB

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

Preview Lab → · Contrast checker → · Palette generator →

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