#5A4ACB#5A4ACB

#5A4ACB is a mid, vivid blue. Relative luminance 0.114; OKLCH L 50.2% C 0.191 H 282.7°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5A4ACB
RGBrgb(90, 74, 203)
HSLhsl(247, 55%, 54%)
HSVhsv(247, 64%, 80%)
CMYKcmyk(55.7%, 63.5%, 0%, 20.4%)
CIE-LABlab(40.22, 41.82, -64.98)
CIE-LCHlch(40.22, 77.28, 302.76°)
OKLaboklab(50.22% 0.042 -0.1867)
OKLCHoklch(50.22% 0.191 282.7)
XYZxyz(17.4414, 11.3819, 57.7662)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4ACB #BBCB4A
analogous
#4A7BCB #5A4ACB #9B4ACB
triadic
#5A4ACB #CB5A4A #4ACB5A
tetradic
#5A4ACB #CB4A7B #BBCB4A #4ACB9B
square
#5A4ACB #CB4A7B #BBCB4A #4ACB9B
split-complementary
#5A4ACB #CB9B4A #7BCB4A
monochromatic
#2D2378 #3F30A8 #5A4ACB #857AD9 #B1A9E6

Accessibility & contrast

On white

6.41
#5A4ACB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5A4ACB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4ACB
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4ACB#FFFFFF#000000##FFFFFF
##5A4ACB1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#005AC8
Tritanopia (blue-blind)
#226A84
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a4acb;
/* rgb */ color: rgb(90, 74, 203);
/* oklch */ color: oklch(50.2% 0.191 282.7);
Tailwind
colors: {
  custom: {
    50: '#937ddc',
    500: '#5a4acb',
    950: '#000000',
  },
}
SCSS
$custom: #5a4acb;
$custom-light: #937ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4acb",
  "rgb": {
    "r": 90,
    "g": 74,
    "b": 203
  },
  "hsl": {
    "h": 247.442,
    "s": 55.365,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50221,
    "c": 0.19137,
    "h": 282.7
  },
  "luminance": 0.11383
}

Semantic roles & 50–950 ramp

primary
#5A4ACB
secondary
#CDD49D
accent
#DF49CC
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4ACB

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

Preview Lab → · Contrast checker → · Palette generator →

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