#5A4FCB#5A4FCB

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

Color values

HEX#5A4FCB
RGBrgb(90, 79, 203)
HSLhsl(245, 54%, 55%)
HSVhsv(245, 61%, 80%)
CMYKcmyk(55.7%, 61.1%, 0%, 20.4%)
CIE-LABlab(41.34, 38.86, -63.16)
CIE-LCHlch(41.34, 74.16, 301.60°)
OKLaboklab(51.04% 0.0372 -0.1813)
OKLCHoklch(51.04% 0.185 281.6)
XYZxyz(17.7886, 12.0763, 57.8819)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FCB #C0CB4F
analogous
#4F82CB #5A4FCB #984FCB
triadic
#5A4FCB #CB5A4F #4FCB5A
tetradic
#5A4FCB #CB4F82 #C0CB4F #4FCB98
square
#5A4FCB #CB4F82 #C0CB4F #4FCB98
split-complementary
#5A4FCB #CB984F #82CB4F
monochromatic
#2C247B #3D32AA #5A4FCB #867ED9 #B3ADE7

Accessibility & contrast

On white

6.15
#5A4FCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5A4FCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FCB
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FCB#FFFFFF#000000##FFFFFF
##5A4FCB1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#216D85
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a4fcb;
/* rgb */ color: rgb(90, 79, 203);
/* oklch */ color: oklch(51.0% 0.185 281.6);
Tailwind
colors: {
  custom: {
    50: '#9381dc',
    500: '#5a4fcb',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fcb;
$custom-light: #9381dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fcb",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 203
  },
  "hsl": {
    "h": 245.323,
    "s": 54.386,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51039,
    "c": 0.18511,
    "h": 281.6
  },
  "luminance": 0.12077
}

Semantic roles & 50–950 ramp

primary
#5A4FCB
secondary
#D0D5A1
accent
#DE4AD1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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