#5A4DB2#5A4DB2

#5A4DB2 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.8% C 0.154 H 285.0°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5A4DB2
RGBrgb(90, 77, 178)
HSLhsl(248, 40%, 50%)
HSVhsv(248, 57%, 70%)
CMYKcmyk(49.4%, 56.7%, 0%, 30.2%)
CIE-LABlab(39.06, 32.29, -52.24)
CIE-LCHlch(39.06, 61.41, 301.72°)
OKLaboklab(48.79% 0.0399 -0.1492)
OKLCHoklch(48.79% 0.154 285)
XYZxyz(14.9038, 10.6950, 43.3899)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4DB2 #A5B24D
analogous
#4D72B2 #5A4DB2 #8D4DB2
triadic
#5A4DB2 #B25A4D #4DB25A
tetradic
#5A4DB2 #B24D72 #A5B24D #4DB28D
square
#5A4DB2 #B24D72 #A5B24D #4DB28D
split-complementary
#5A4DB2 #B28D4D #72B24D
monochromatic
#2F285D #443B87 #5A4DB2 #8278C4 #A9A2D7

Accessibility & contrast

On white

6.69
#5A4DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5A4DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4DB2
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4DB2#FFFFFF#000000##FFFFFF
##5A4DB21.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#085FB5
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#3B6478
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a4db2;
/* rgb */ color: rgb(90, 77, 178);
/* oklch */ color: oklch(48.8% 0.154 285.0);
Tailwind
colors: {
  custom: {
    50: '#8f7fca',
    500: '#5a4db2',
    950: '#000000',
  },
}
SCSS
$custom: #5a4db2;
$custom-light: #8f7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4db2",
  "rgb": {
    "r": 90,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 247.723,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.48792,
    "c": 0.15448,
    "h": 285
  },
  "luminance": 0.10696
}

Semantic roles & 50–950 ramp

primary
#5A4DB2
secondary
#BEC497
accent
#CF58C0
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5A4DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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