#5A4ACC#5A4ACC

#5A4ACC is a mid, vivid blue. Relative luminance 0.114; OKLCH L 50.3% C 0.193 H 282.6°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#5A4ACC
RGBrgb(90, 74, 204)
HSLhsl(247, 56%, 55%)
HSVhsv(247, 64%, 80%)
CMYKcmyk(55.9%, 63.7%, 0%, 20%)
CIE-LABlab(40.30, 42.13, -65.43)
CIE-LCHlch(40.30, 77.82, 302.77°)
OKLaboklab(50.3% 0.0419 -0.188)
OKLCHoklch(50.3% 0.193 282.6)
XYZxyz(17.5610, 11.4298, 58.3958)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4ACC #BCCC4A
analogous
#4A7BCC #5A4ACC #9B4ACC
triadic
#5A4ACC #CC5A4A #4ACC5A
tetradic
#5A4ACC #CC4A7B #BCCC4A #4ACC9B
square
#5A4ACC #CC4A7B #BCCC4A #4ACC9B
split-complementary
#5A4ACC #CC9B4A #7BCC4A
monochromatic
#2D2279 #3F30A9 #5A4ACC #867AD9 #B1A9E7

Accessibility & contrast

On white

6.39
#5A4ACC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5A4ACC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4ACC
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4ACC#FFFFFF#000000##FFFFFF
##5A4ACC1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#216A84
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a4acc;
/* rgb */ color: rgb(90, 74, 204);
/* oklch */ color: oklch(50.3% 0.193 282.6);
Tailwind
colors: {
  custom: {
    50: '#937ddc',
    500: '#5a4acc',
    950: '#000000',
  },
}
SCSS
$custom: #5a4acc;
$custom-light: #937ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4acc",
  "rgb": {
    "r": 90,
    "g": 74,
    "b": 204
  },
  "hsl": {
    "h": 247.385,
    "s": 56.034,
    "l": 54.51
  },
  "oklch": {
    "l": 0.50303,
    "c": 0.19264,
    "h": 282.6
  },
  "luminance": 0.11431
}

Semantic roles & 50–950 ramp

primary
#5A4ACC
secondary
#CED49D
accent
#DF48CD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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