#5A4CEB#5A4CEB

#5A4CEB is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 53.2% C 0.229 H 279.2°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#5A4CEB
RGBrgb(90, 76, 235)
HSLhsl(245, 80%, 61%)
HSVhsv(245, 68%, 92%)
CMYKcmyk(61.7%, 67.7%, 0%, 7.8%)
CIE-LABlab(43.27, 50.55, -78.29)
CIE-LCHlch(43.27, 93.19, 302.85°)
OKLaboklab(53.24% 0.0366 -0.2257)
OKLCHoklch(53.24% 0.229 279.2)
XYZxyz(21.7915, 13.3390, 80.0075)
Luminance0.1334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CEB #DDEB4C
analogous
#4C8DEB #5A4CEB #A94CEB
triadic
#5A4CEB #EB5A4C #4CEB5A
tetradic
#5A4CEB #EB4C8D #DDEB4C #4CEBA9
square
#5A4CEB #EB4C8D #DDEB4C #4CEBA9
split-complementary
#5A4CEB #EBA94C #8DEB4C
monochromatic
#2013AA #2B19E1 #5A4CEB #8D83F1 #BFBAF7

Accessibility & contrast

On white

5.72
#5A4CEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5A4CEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CEB
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CEB#FFFFFF#000000##FFFFFF
##5A4CEB1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CF0
Deuteranopia (green-blind)
#0060E8
Tritanopia (blue-blind)
#007696
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a4ceb;
/* rgb */ color: rgb(90, 76, 235);
/* oklch */ color: oklch(53.2% 0.229 279.2);
Tailwind
colors: {
  custom: {
    50: '#9880f3',
    500: '#5a4ceb',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ceb;
$custom-light: #9880f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ceb",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 235
  },
  "hsl": {
    "h": 245.283,
    "s": 79.899,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53242,
    "c": 0.22868,
    "h": 279.2
  },
  "luminance": 0.13341
}

Semantic roles & 50–950 ramp

primary
#5A4CEB
secondary
#E2E7AB
accent
#DC09CA
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A4CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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