#5A4FA2#5A4FA2

#5A4FA2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.0% C 0.129 H 286.5°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5A4FA2
RGBrgb(90, 79, 162)
HSLhsl(248, 34%, 47%)
HSVhsv(248, 51%, 64%)
CMYKcmyk(44.4%, 51.2%, 0%, 36.5%)
CIE-LABlab(38.50, 26.15, -43.63)
CIE-LCHlch(38.50, 50.87, 300.93°)
OKLaboklab(48.04% 0.0368 -0.1239)
OKLCHoklch(48.04% 0.129 286.5)
XYZxyz(13.5322, 10.3737, 35.4647)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FA2 #97A24F
analogous
#4F6DA2 #5A4FA2 #844FA2
triadic
#5A4FA2 #A25A4F #4FA25A
tetradic
#5A4FA2 #A24F6D #97A24F #4FA284
square
#5A4FA2 #A24F6D #97A24F #4FA284
split-complementary
#5A4FA2 #A2844F #6DA24F
monochromatic
#2C2750 #433B79 #5A4FA2 #7D73BB #A39CCF

Accessibility & contrast

On white

6.83
#5A4FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5A4FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FA2
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FA2#FFFFFF#000000##FFFFFF
##5A4FA21.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5DA5
Deuteranopia (green-blind)
#2958A0
Tritanopia (blue-blind)
#446071
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a4fa2;
/* rgb */ color: rgb(90, 79, 162);
/* oklch */ color: oklch(48.0% 0.129 286.5);
Tailwind
colors: {
  custom: {
    50: '#8d80be',
    500: '#5a4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fa2;
$custom-light: #8d80be;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fa2",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 247.952,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.48041,
    "c": 0.12927,
    "h": 286.5
  },
  "luminance": 0.10374
}

Semantic roles & 50–950 ramp

primary
#5A4FA2
secondary
#B6BC91
accent
#CB5DBC
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0D0A12
muted
#7D7C81

Preview Lab

Preview with #5A4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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