#5B4BD5#5B4BD5

#5B4BD5 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.3% C 0.203 H 281.8°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#5B4BD5
RGBrgb(91, 75, 213)
HSLhsl(247, 62%, 56%)
HSVhsv(247, 65%, 84%)
CMYKcmyk(57.3%, 64.8%, 0%, 16.5%)
CIE-LABlab(41.31, 44.49, -68.96)
CIE-LCHlch(41.31, 82.07, 302.83°)
OKLaboklab(51.28% 0.0414 -0.1984)
OKLCHoklch(51.28% 0.203 281.8)
XYZxyz(18.8370, 12.0592, 64.2729)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4BD5 #C5D54B
analogous
#4B80D5 #5B4BD5 #A04BD5
triadic
#5B4BD5 #D55B4B #4BD55B
tetradic
#5B4BD5 #D54B80 #C5D54B #4BD5A0
square
#5B4BD5 #D54B80 #C5D54B #4BD5A0
split-complementary
#5B4BD5 #D5A04B #80D54B
monochromatic
#2B1F86 #3B2BB8 #5B4BD5 #887DE1 #B5AEEC

Accessibility & contrast

On white

6.15
#5B4BD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5B4BD5
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4BD5#FFFFFF#000000##FFFFFF
##5B4BD51.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D9
Deuteranopia (green-blind)
#005CD2
Tritanopia (blue-blind)
#146E89
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b4bd5;
/* rgb */ color: rgb(91, 75, 213);
/* oklch */ color: oklch(51.3% 0.203 281.8);
Tailwind
colors: {
  custom: {
    50: '#957ee3',
    500: '#5b4bd5',
    950: '#000000',
  },
}
SCSS
$custom: #5b4bd5;
$custom-light: #957ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4bd5",
  "rgb": {
    "r": 91,
    "g": 75,
    "b": 213
  },
  "hsl": {
    "h": 246.957,
    "s": 62.162,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51283,
    "c": 0.20263,
    "h": 281.8
  },
  "luminance": 0.1206
}

Semantic roles & 50–950 ramp

primary
#5B4BD5
secondary
#D4DAA2
accent
#E543D2
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5B4BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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