#5A4BB2#5A4BB2

#5A4BB2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.4% C 0.157 H 285.6°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#5A4BB2
RGBrgb(90, 75, 178)
HSLhsl(249, 41%, 50%)
HSVhsv(249, 58%, 70%)
CMYKcmyk(49.4%, 57.9%, 0%, 30.2%)
CIE-LABlab(38.59, 33.51, -53.01)
CIE-LCHlch(38.59, 62.72, 302.30°)
OKLaboklab(48.44% 0.0422 -0.1515)
OKLCHoklch(48.44% 0.157 285.6)
XYZxyz(14.7660, 10.4195, 43.3440)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BB2 #A3B24B
analogous
#4B70B2 #5A4BB2 #8E4BB2
triadic
#5A4BB2 #B25A4B #4BB25A
tetradic
#5A4BB2 #B24B70 #A3B24B #4BB28E
square
#5A4BB2 #B24B70 #A3B24B #4BB28E
split-complementary
#5A4BB2 #B28E4B #70B24B
monochromatic
#2E275C #443987 #5A4BB2 #8175C5 #A8A0D7

Accessibility & contrast

On white

6.81
#5A4BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5A4BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BB2
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BB2#FFFFFF#000000##FFFFFF
##5A4BB21.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#3B6277
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a4bb2;
/* rgb */ color: rgb(90, 75, 178);
/* oklch */ color: oklch(48.4% 0.157 285.6);
Tailwind
colors: {
  custom: {
    50: '#8f7eca',
    500: '#5a4bb2',
    950: '#000000',
  },
}
SCSS
$custom: #5a4bb2;
$custom-light: #8f7eca;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4bb2",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 248.738,
    "s": 40.711,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4844,
    "c": 0.15728,
    "h": 285.6
  },
  "luminance": 0.1042
}

Semantic roles & 50–950 ramp

primary
#5A4BB2
secondary
#BDC495
accent
#D157BF
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5A4BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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