#5B4CD2#5B4CD2

#5B4CD2 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 51.2% C 0.198 H 281.9°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#5B4CD2
RGBrgb(91, 76, 210)
HSLhsl(247, 60%, 56%)
HSVhsv(247, 64%, 82%)
CMYKcmyk(56.7%, 63.8%, 0%, 17.6%)
CIE-LABlab(41.29, 42.98, -67.27)
CIE-LCHlch(41.29, 79.83, 302.58°)
OKLaboklab(51.19% 0.0408 -0.1934)
OKLCHoklch(51.19% 0.198 281.9)
XYZxyz(18.5281, 12.0450, 62.3089)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4CD2 #C3D24C
analogous
#4C80D2 #5B4CD2 #9E4CD2
triadic
#5B4CD2 #D25B4C #4CD25B
tetradic
#5B4CD2 #D24C80 #C3D24C #4CD29E
square
#5B4CD2 #D24C80 #C3D24C #4CD29E
split-complementary
#5B4CD2 #D29E4C #80D24C
monochromatic
#2C2183 #3C2DB4 #5B4CD2 #887DDE #B5AEEB

Accessibility & contrast

On white

6.16
#5B4CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5B4CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4CD2
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4CD2#FFFFFF#000000##FFFFFF
##5B4CD21.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#1A6D88
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b4cd2;
/* rgb */ color: rgb(91, 76, 210);
/* oklch */ color: oklch(51.2% 0.198 281.9);
Tailwind
colors: {
  custom: {
    50: '#947fe1',
    500: '#5b4cd2',
    950: '#000000',
  },
}
SCSS
$custom: #5b4cd2;
$custom-light: #947fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4cd2",
  "rgb": {
    "r": 91,
    "g": 76,
    "b": 210
  },
  "hsl": {
    "h": 246.716,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51192,
    "c": 0.19767,
    "h": 281.9
  },
  "luminance": 0.12046
}

Semantic roles & 50–950 ramp

primary
#5B4CD2
secondary
#D2D9A1
accent
#E345D1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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