#5A4DCA#5A4DCA

#5A4DCA is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.6% C 0.186 H 282.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5A4DCA
RGBrgb(90, 77, 202)
HSLhsl(246, 54%, 55%)
HSVhsv(246, 62%, 79%)
CMYKcmyk(55.4%, 61.9%, 0%, 20.8%)
CIE-LABlab(40.81, 39.74, -63.44)
CIE-LCHlch(40.81, 74.86, 302.06°)
OKLaboklab(50.63% 0.0392 -0.1822)
OKLCHoklch(50.63% 0.186 282.1)
XYZxyz(17.5277, 11.7446, 57.2090)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4DCA #BDCA4D
analogous
#4D7FCA #5A4DCA #994DCA
triadic
#5A4DCA #CA5A4D #4DCA5A
tetradic
#5A4DCA #CA4D7F #BDCA4D #4DCA99
square
#5A4DCA #CA4D7F #BDCA4D #4DCA99
split-complementary
#5A4DCA #CA994D #7FCA4D
monochromatic
#2D2479 #3E32A8 #5A4DCA #867CD8 #B1ABE6

Accessibility & contrast

On white

6.27
#5A4DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5A4DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4DCA
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4DCA#FFFFFF#000000##FFFFFF
##5A4DCA1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#236B84
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5a4dca;
/* rgb */ color: rgb(90, 77, 202);
/* oklch */ color: oklch(50.6% 0.186 282.1);
Tailwind
colors: {
  custom: {
    50: '#937fdb',
    500: '#5a4dca',
    950: '#000000',
  },
}
SCSS
$custom: #5a4dca;
$custom-light: #937fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4dca",
  "rgb": {
    "r": 90,
    "g": 77,
    "b": 202
  },
  "hsl": {
    "h": 246.24,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50628,
    "c": 0.18634,
    "h": 282.1
  },
  "luminance": 0.11746
}

Semantic roles & 50–950 ramp

primary
#5A4DCA
secondary
#CED49F
accent
#DD4ACE
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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