#5A4FC0#5A4FC0

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

Color values

HEX#5A4FC0
RGBrgb(90, 79, 192)
HSLhsl(246, 47%, 53%)
HSVhsv(246, 59%, 75%)
CMYKcmyk(53.1%, 58.9%, 0%, 24.7%)
CIE-LABlab(40.52, 35.42, -58.09)
CIE-LCHlch(40.52, 68.03, 301.37°)
OKLaboklab(50.19% 0.0377 -0.1664)
OKLCHoklch(50.19% 0.171 282.8)
XYZxyz(16.5240, 11.5704, 51.2216)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FC0 #B5C04F
analogous
#4F7CC0 #5A4FC0 #924FC0
triadic
#5A4FC0 #C05A4F #4FC05A
tetradic
#5A4FC0 #C04F7C #B5C04F #4FC092
square
#5A4FC0 #C04F7C #B5C04F #4FC092
split-complementary
#5A4FC0 #C0924F #7CC04F
monochromatic
#2E276D #41379A #5A4FC0 #847CD0 #AFA9E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A4FC0#FFFFFF#000000##FFFFFF
##5A4FC01.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)
#0063C4
Deuteranopia (green-blind)
#005CBE
Tritanopia (blue-blind)
#2F6980
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5a4fc0;
/* rgb */ color: rgb(90, 79, 192);
/* oklch */ color: oklch(50.2% 0.171 282.8);
Tailwind
colors: {
  custom: {
    50: '#9181d4',
    500: '#5a4fc0',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fc0;
$custom-light: #9181d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fc0",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 192
  },
  "hsl": {
    "h": 245.841,
    "s": 47.28,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50187,
    "c": 0.17063,
    "h": 282.8
  },
  "luminance": 0.11571
}

Semantic roles & 50–950 ramp

primary
#5A4FC0
secondary
#C9CE9D
accent
#D751CA
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5A4FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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