#5B4DC2#5B4DC2

#5B4DC2 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 50.1% C 0.176 H 283.5°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#5B4DC2
RGBrgb(91, 77, 194)
HSLhsl(247, 49%, 53%)
HSVhsv(247, 60%, 76%)
CMYKcmyk(53.1%, 60.3%, 0%, 23.9%)
CIE-LABlab(40.29, 37.44, -59.63)
CIE-LCHlch(40.29, 70.41, 302.12°)
OKLaboklab(50.08% 0.0409 -0.1709)
OKLCHoklch(50.08% 0.176 283.5)
XYZxyz(16.7029, 11.4260, 52.3538)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4DC2 #B4C24D
analogous
#4D7AC2 #5B4DC2 #954DC2
triadic
#5B4DC2 #C25B4D #4DC25B
tetradic
#5B4DC2 #C24D7A #B4C24D #4DC295
square
#5B4DC2 #C24D7A #B4C24D #4DC295
split-complementary
#5B4DC2 #C2954D #7AC24D
monochromatic
#2F266F #42369C #5B4DC2 #857BD2 #AFA8E1

Accessibility & contrast

On white

6.39
#5B4DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5B4DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4DC2
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4DC2#FFFFFF#000000##FFFFFF
##5B4DC21.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#306980
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5b4dc2;
/* rgb */ color: rgb(91, 77, 194);
/* oklch */ color: oklch(50.1% 0.176 283.5);
Tailwind
colors: {
  custom: {
    50: '#927fd5',
    500: '#5b4dc2',
    950: '#000000',
  },
}
SCSS
$custom: #5b4dc2;
$custom-light: #927fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4dc2",
  "rgb": {
    "r": 91,
    "g": 77,
    "b": 194
  },
  "hsl": {
    "h": 247.179,
    "s": 48.954,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5008,
    "c": 0.17578,
    "h": 283.5
  },
  "luminance": 0.11427
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B4DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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