#5B4DD2#5B4DD2

#5B4DD2 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.4% C 0.196 H 281.7°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5B4DD2
RGBrgb(91, 77, 210)
HSLhsl(246, 60%, 56%)
HSVhsv(246, 63%, 82%)
CMYKcmyk(56.7%, 63.3%, 0%, 17.6%)
CIE-LABlab(41.51, 42.40, -66.92)
CIE-LCHlch(41.51, 79.22, 302.36°)
OKLaboklab(51.35% 0.0399 -0.1923)
OKLCHoklch(51.35% 0.196 281.7)
XYZxyz(18.5975, 12.1838, 62.3320)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4DD2 #C4D24D
analogous
#4D82D2 #5B4DD2 #9E4DD2
triadic
#5B4DD2 #D25B4D #4DD25B
tetradic
#5B4DD2 #D24D82 #C4D24D #4DD29E
square
#5B4DD2 #D24D82 #C4D24D #4DD29E
split-complementary
#5B4DD2 #D29E4D #82D24D
monochromatic
#2C2183 #3C2EB4 #5B4DD2 #887EDE #B5AFEB

Accessibility & contrast

On white

6.11
#5B4DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5B4DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4DD2
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4DD2#FFFFFF#000000##FFFFFF
##5B4DD21.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#1A6E88
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b4dd2;
/* rgb */ color: rgb(91, 77, 210);
/* oklch */ color: oklch(51.4% 0.196 281.7);
Tailwind
colors: {
  custom: {
    50: '#9480e1',
    500: '#5b4dd2',
    950: '#000000',
  },
}
SCSS
$custom: #5b4dd2;
$custom-light: #9480e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4dd2",
  "rgb": {
    "r": 91,
    "g": 77,
    "b": 210
  },
  "hsl": {
    "h": 246.316,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51352,
    "c": 0.19644,
    "h": 281.7
  },
  "luminance": 0.12185
}

Semantic roles & 50–950 ramp

primary
#5B4DD2
secondary
#D3D9A2
accent
#E345D2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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