#5A4BBC#5A4BBC

#5A4BBC is a mid, vivid blue. Relative luminance 0.108; OKLCH L 49.2% C 0.171 H 284.2°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5A4BBC
RGBrgb(90, 75, 188)
HSLhsl(248, 46%, 52%)
HSVhsv(248, 60%, 74%)
CMYKcmyk(52.1%, 60.1%, 0%, 26.3%)
CIE-LABlab(39.30, 36.59, -57.73)
CIE-LCHlch(39.30, 68.35, 302.36°)
OKLaboklab(49.2% 0.042 -0.1654)
OKLCHoklch(49.2% 0.171 284.2)
XYZxyz(15.8069, 10.8358, 48.8258)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BBC #ADBC4B
analogous
#4B75BC #5A4BBC #934BBC
triadic
#5A4BBC #BC5A4B #4BBC5A
tetradic
#5A4BBC #BC4B75 #ADBC4B #4BBC93
square
#5A4BBC #BC4B75 #ADBC4B #4BBC93
split-complementary
#5A4BBC #BC934B #75BC4B
monochromatic
#2F2666 #433793 #5A4BBC #8378CD #ACA4DD

Accessibility & contrast

On white

6.63
#5A4BBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5A4BBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BBC
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BBC#FFFFFF#000000##FFFFFF
##5A4BBC1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#0059BA
Tritanopia (blue-blind)
#33667C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a4bbc;
/* rgb */ color: rgb(90, 75, 188);
/* oklch */ color: oklch(49.2% 0.171 284.2);
Tailwind
colors: {
  custom: {
    50: '#917ed1',
    500: '#5a4bbc',
    950: '#000000',
  },
}
SCSS
$custom: #5a4bbc;
$custom-light: #917ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4bbc",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 188
  },
  "hsl": {
    "h": 247.965,
    "s": 45.749,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49195,
    "c": 0.17064,
    "h": 284.2
  },
  "luminance": 0.10837
}

Semantic roles & 50–950 ramp

primary
#5A4BBC
secondary
#C4CA99
accent
#D552C4
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5A4BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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