#5A4DC6#5A4DC6

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

Color values

HEX#5A4DC6
RGBrgb(90, 77, 198)
HSLhsl(246, 51%, 54%)
HSVhsv(246, 61%, 78%)
CMYKcmyk(54.5%, 61.1%, 0%, 22.4%)
CIE-LABlab(40.50, 38.49, -61.62)
CIE-LCHlch(40.50, 72.65, 301.99°)
OKLaboklab(50.31% 0.0395 -0.1768)
OKLCHoklch(50.31% 0.181 282.6)
XYZxyz(17.0602, 11.5576, 54.7470)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4DC6 #B9C64D
analogous
#4D7DC6 #5A4DC6 #974DC6
triadic
#5A4DC6 #C65A4D #4DC65A
tetradic
#5A4DC6 #C64D7D #B9C64D #4DC697
square
#5A4DC6 #C64D7D #B9C64D #4DC697
split-complementary
#5A4DC6 #C6974D #7DC64D
monochromatic
#2D2574 #4034A2 #5A4DC6 #857BD5 #B0AAE4

Accessibility & contrast

On white

6.34
#5A4DC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5A4DC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4DC6
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4DC6#FFFFFF#000000##FFFFFF
##5A4DC61.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CA
Deuteranopia (green-blind)
#005BC4
Tritanopia (blue-blind)
#296A82
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a4dc6;
/* rgb */ color: rgb(90, 77, 198);
/* oklch */ color: oklch(50.3% 0.181 282.6);
Tailwind
colors: {
  custom: {
    50: '#927fd8',
    500: '#5a4dc6',
    950: '#000000',
  },
}
SCSS
$custom: #5a4dc6;
$custom-light: #927fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4dc6",
  "rgb": {
    "r": 90,
    "g": 77,
    "b": 198
  },
  "hsl": {
    "h": 246.446,
    "s": 51.489,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50311,
    "c": 0.18115,
    "h": 282.6
  },
  "luminance": 0.11559
}

Semantic roles & 50–950 ramp

primary
#5A4DC6
secondary
#CCD19E
accent
#DB4DCC
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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