#5A4DEB#5A4DEB

#5A4DEB is a mid, highly saturated blue. Relative luminance 0.135; OKLCH L 53.4% C 0.228 H 279.1°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#5A4DEB
RGBrgb(90, 77, 235)
HSLhsl(245, 80%, 61%)
HSVhsv(245, 67%, 92%)
CMYKcmyk(61.7%, 67.2%, 0%, 7.8%)
CIE-LABlab(43.47, 49.99, -77.95)
CIE-LCHlch(43.47, 92.60, 302.67°)
OKLaboklab(53.39% 0.0358 -0.2247)
OKLCHoklch(53.39% 0.228 279.1)
XYZxyz(21.8609, 13.4779, 80.0306)
Luminance0.1348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4DEB #DEEB4D
analogous
#4D8FEB #5A4DEB #A94DEB
triadic
#5A4DEB #EB5A4D #4DEB5A
tetradic
#5A4DEB #EB4D8F #DEEB4D #4DEBA9
square
#5A4DEB #EB4D8F #DEEB4D #4DEBA9
split-complementary
#5A4DEB #EBA94D #8FEB4D
monochromatic
#2013AA #2A19E1 #5A4DEB #8D84F1 #C0BBF7

Accessibility & contrast

On white

5.68
#5A4DEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#5A4DEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4DEB
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4DEB#FFFFFF#000000##FFFFFF
##5A4DEB1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DF0
Deuteranopia (green-blind)
#0060E8
Tritanopia (blue-blind)
#007796
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5a4deb;
/* rgb */ color: rgb(90, 77, 235);
/* oklch */ color: oklch(53.4% 0.228 279.1);
Tailwind
colors: {
  custom: {
    50: '#9880f3',
    500: '#5a4deb',
    950: '#000000',
  },
}
SCSS
$custom: #5a4deb;
$custom-light: #9880f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4deb",
  "rgb": {
    "r": 90,
    "g": 77,
    "b": 235
  },
  "hsl": {
    "h": 244.937,
    "s": 79.798,
    "l": 61.176
  },
  "oklch": {
    "l": 0.5339,
    "c": 0.22758,
    "h": 279.1
  },
  "luminance": 0.1348
}

Semantic roles & 50–950 ramp

primary
#5A4DEB
secondary
#E3E8AC
accent
#DC09CB
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A4DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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