#5A56FF#5A56FF

#5A56FF is a mid, highly saturated blue. Relative luminance 0.160; OKLCH L 56.5% C 0.242 H 276.4°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5A56FF
RGBrgb(90, 86, 255)
HSLhsl(241, 100%, 67%)
HSVhsv(241, 66%, 100%)
CMYKcmyk(64.7%, 66.3%, 0%, 0%)
CIE-LABlab(47.04, 51.15, -83.32)
CIE-LCHlch(47.04, 97.77, 301.54°)
OKLaboklab(56.48% 0.0269 -0.2405)
OKLCHoklch(56.48% 0.242 276.4)
XYZxyz(25.5883, 16.0470, 96.3373)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A56FF #FBFF56
analogous
#56A7FF #5A56FF #AF56FF
triadic
#5A56FF #FF5A56 #56FF5A
tetradic
#5A56FF #FF56A7 #FBFF56 #56FFAF
square
#5A56FF #FF56A7 #FBFF56 #56FFAF
split-complementary
#5A56FF #FFAF56 #A7FF56
monochromatic
#0500DB #1E19FF #5A56FF #9693FF #D2D0FF

Accessibility & contrast

On white

4.99
#5A56FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#5A56FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A56FF
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A56FF#FFFFFF#000000##FFFFFF
##5A56FF1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077FF
Deuteranopia (green-blind)
#0068FC
Tritanopia (blue-blind)
#0083A3
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a56ff;
/* rgb */ color: rgb(90, 86, 255);
/* oklch */ color: oklch(56.5% 0.242 276.4);
Tailwind
colors: {
  custom: {
    50: '#9b87ff',
    500: '#5a56ff',
    950: '#000000',
  },
}
SCSS
$custom: #5a56ff;
$custom-light: #9b87ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5a56ff",
  "rgb": {
    "r": 90,
    "g": 86,
    "b": 255
  },
  "hsl": {
    "h": 241.42,
    "s": 100,
    "l": 66.863
  },
  "oklch": {
    "l": 0.56479,
    "c": 0.24197,
    "h": 276.4
  },
  "luminance": 0.16049
}

Semantic roles & 50–950 ramp

primary
#5A56FF
secondary
#F2F3BD
accent
#E600E0
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B18
muted
#7F7C86

Preview Lab

Preview with #5A56FF

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

Preview Lab → · Contrast checker → · Palette generator →

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