#5B4BD9#5B4BD9

#5B4BD9 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 51.6% C 0.208 H 281.4°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#5B4BD9
RGBrgb(91, 75, 217)
HSLhsl(247, 65%, 57%)
HSVhsv(247, 65%, 85%)
CMYKcmyk(58.1%, 65.4%, 0%, 14.9%)
CIE-LABlab(41.63, 45.72, -70.73)
CIE-LCHlch(41.63, 84.22, 302.88°)
OKLaboklab(51.62% 0.0409 -0.2035)
OKLCHoklch(51.62% 0.208 281.4)
XYZxyz(19.3509, 12.2647, 66.9798)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4BD9 #C9D94B
analogous
#4B82D9 #5B4BD9 #A24BD9
triadic
#5B4BD9 #D95B4B #4BD95B
tetradic
#5B4BD9 #D94B82 #C9D94B #4BD9A2
square
#5B4BD9 #D94B82 #C9D94B #4BD9A2
split-complementary
#5B4BD9 #D9A24B #82D94B
monochromatic
#2A1E8C #3928BF #5B4BD9 #897EE4 #B7B0EE

Accessibility & contrast

On white

6.08
#5B4BD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5B4BD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4BD9
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4BD9#FFFFFF#000000##FFFFFF
##5B4BD91.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DD
Deuteranopia (green-blind)
#005DD6
Tritanopia (blue-blind)
#066F8B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b4bd9;
/* rgb */ color: rgb(91, 75, 217);
/* oklch */ color: oklch(51.6% 0.208 281.4);
Tailwind
colors: {
  custom: {
    50: '#967ee6',
    500: '#5b4bd9',
    950: '#000000',
  },
}
SCSS
$custom: #5b4bd9;
$custom-light: #967ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4bd9",
  "rgb": {
    "r": 91,
    "g": 75,
    "b": 217
  },
  "hsl": {
    "h": 246.761,
    "s": 65.138,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51618,
    "c": 0.20762,
    "h": 281.4
  },
  "luminance": 0.12266
}

Semantic roles & 50–950 ramp

primary
#5B4BD9
secondary
#D6DDA3
accent
#E840D5
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5B4BD9

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

Preview Lab → · Contrast checker → · Palette generator →

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