#5A4BC2#5A4BC2

#5A4BC2 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.7% C 0.179 H 283.5°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#5A4BC2
RGBrgb(90, 75, 194)
HSLhsl(248, 49%, 53%)
HSVhsv(248, 61%, 76%)
CMYKcmyk(53.6%, 61.3%, 0%, 23.9%)
CIE-LABlab(39.75, 38.44, -60.52)
CIE-LCHlch(39.75, 71.70, 302.43°)
OKLaboklab(49.66% 0.0417 -0.1736)
OKLCHoklch(49.66% 0.179 283.5)
XYZxyz(16.4672, 11.0999, 52.3033)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BC2 #B3C24B
analogous
#4B77C2 #5A4BC2 #954BC2
triadic
#5A4BC2 #C25A4B #4BC25A
tetradic
#5A4BC2 #C24B77 #B3C24B #4BC295
square
#5A4BC2 #C24B77 #B3C24B #4BC295
split-complementary
#5A4BC2 #C2954B #77C24B
monochromatic
#2E256D #42359B #5A4BC2 #8479D1 #AEA6E1

Accessibility & contrast

On white

6.52
#5A4BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5A4BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BC2
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BC2#FFFFFF#000000##FFFFFF
##5A4BC21.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#2D687F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a4bc2;
/* rgb */ color: rgb(90, 75, 194);
/* oklch */ color: oklch(49.7% 0.179 283.5);
Tailwind
colors: {
  custom: {
    50: '#927ed5',
    500: '#5a4bc2',
    950: '#000000',
  },
}
SCSS
$custom: #5a4bc2;
$custom-light: #927ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4bc2",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 194
  },
  "hsl": {
    "h": 247.563,
    "s": 49.378,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49662,
    "c": 0.17851,
    "h": 283.5
  },
  "luminance": 0.11101
}

Semantic roles & 50–950 ramp

primary
#5A4BC2
secondary
#C8CE9B
accent
#D94FC8
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5A4BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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