#5A56DC#5A56DC

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

Color values

HEX#5A56DC
RGBrgb(90, 86, 220)
HSLhsl(242, 66%, 60%)
HSVhsv(242, 61%, 86%)
CMYKcmyk(59.1%, 60.9%, 0%, 13.7%)
CIE-LABlab(44.23, 40.06, -68.22)
CIE-LCHlch(44.23, 79.11, 300.42°)
OKLaboklab(53.56% 0.0298 -0.1962)
OKLCHoklch(53.56% 0.198 278.6)
XYZxyz(20.4584, 13.9951, 69.3195)
Luminance0.1400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56DC #D8DC56
analogous
#5695DC #5A56DC #9D56DC
triadic
#5A56DC #DC5A56 #56DC5A
tetradic
#5A56DC #DC5695 #D8DC56 #56DC9D
square
#5A56DC #DC5695 #D8DC56 #56DC9D
split-complementary
#5A56DC #DC9D56 #95DC56
monochromatic
#232098 #2F2ACB #5A56DC #8C89E6 #BDBBF1

Accessibility & contrast

On white

5.53
#5A56DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5A56DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56DC
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56DC#FFFFFF#000000##FFFFFF
##5A56DC1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.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: #5a56dc;
/* rgb */ color: rgb(90, 86, 220);
/* oklch */ color: oklch(53.6% 0.198 278.6);
Tailwind
colors: {
  custom: {
    50: '#9586e8',
    500: '#5a56dc',
    950: '#000000',
  },
}
SCSS
$custom: #5a56dc;
$custom-light: #9586e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56dc",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 220
  },
  "hsl": {
    "h": 241.791,
    "s": 65.686,
    "l": 60
  },
  "oklch": {
    "l": 0.53562,
    "c": 0.19842,
    "h": 278.6
  },
  "luminance": 0.13997
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A56DC

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

Preview Lab → · Contrast checker → · Palette generator →

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