#5A4DCF#5A4DCF

#5A4DCF is a mid, vivid blue. Relative luminance 0.120; OKLCH L 51.0% C 0.193 H 281.6°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5A4DCF
RGBrgb(90, 77, 207)
HSLhsl(246, 58%, 56%)
HSVhsv(246, 63%, 81%)
CMYKcmyk(56.5%, 62.8%, 0%, 18.8%)
CIE-LABlab(41.19, 41.30, -65.70)
CIE-LCHlch(41.19, 77.60, 302.15°)
OKLaboklab(51.03% 0.0389 -0.1888)
OKLCHoklch(51.03% 0.193 281.6)
XYZxyz(18.1293, 11.9852, 60.3775)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4DCF #C2CF4D
analogous
#4D81CF #5A4DCF #9B4DCF
triadic
#5A4DCF #CF5A4D #4DCF5A
tetradic
#5A4DCF #CF4D81 #C2CF4D #4DCF9B
square
#5A4DCF #CF4D81 #C2CF4D #4DCF9B
split-complementary
#5A4DCF #CF9B4D #81CF4D
monochromatic
#2C227F #3C2FAF #5A4DCF #877DDC #B3ADE9

Accessibility & contrast

On white

6.18
#5A4DCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5A4DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4DCF
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4DCF#FFFFFF#000000##FFFFFF
##5A4DCF1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#005CCC
Tritanopia (blue-blind)
#1B6D87
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a4dcf;
/* rgb */ color: rgb(90, 77, 207);
/* oklch */ color: oklch(51.0% 0.193 281.6);
Tailwind
colors: {
  custom: {
    50: '#937fdf',
    500: '#5a4dcf',
    950: '#000000',
  },
}
SCSS
$custom: #5a4dcf;
$custom-light: #937fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4dcf",
  "rgb": {
    "r": 90,
    "g": 77,
    "b": 207
  },
  "hsl": {
    "h": 246,
    "s": 57.522,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5103,
    "c": 0.19278,
    "h": 281.6
  },
  "luminance": 0.11986
}

Semantic roles & 50–950 ramp

primary
#5A4DCF
secondary
#D2D7A1
accent
#E147D1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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