#5B4CD3#5B4CD3

#5B4CD3 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.3% C 0.199 H 281.8°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#5B4CD3
RGBrgb(91, 76, 211)
HSLhsl(247, 61%, 56%)
HSVhsv(247, 64%, 83%)
CMYKcmyk(56.9%, 64%, 0%, 17.3%)
CIE-LABlab(41.37, 43.29, -67.72)
CIE-LCHlch(41.37, 80.38, 302.59°)
OKLaboklab(51.27% 0.0407 -0.1947)
OKLCHoklch(51.27% 0.199 281.8)
XYZxyz(18.6530, 12.0950, 62.9670)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4CD3 #C4D34C
analogous
#4C81D3 #5B4CD3 #9F4CD3
triadic
#5B4CD3 #D35B4C #4CD35B
tetradic
#5B4CD3 #D34C81 #C4D34C #4CD39F
square
#5B4CD3 #D34C81 #C4D34C #4CD39F
split-complementary
#5B4CD3 #D39F4C #81D34C
monochromatic
#2C2084 #3C2DB5 #5B4CD3 #887DDF #B5AEEB

Accessibility & contrast

On white

6.14
#5B4CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5B4CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4CD3
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4CD3#FFFFFF#000000##FFFFFF
##5B4CD31.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#005DD0
Tritanopia (blue-blind)
#186E89
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b4cd3;
/* rgb */ color: rgb(91, 76, 211);
/* oklch */ color: oklch(51.3% 0.199 281.8);
Tailwind
colors: {
  custom: {
    50: '#957fe1',
    500: '#5b4cd3',
    950: '#000000',
  },
}
SCSS
$custom: #5b4cd3;
$custom-light: #957fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4cd3",
  "rgb": {
    "r": 91,
    "g": 76,
    "b": 211
  },
  "hsl": {
    "h": 246.667,
    "s": 60.538,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51274,
    "c": 0.19893,
    "h": 281.8
  },
  "luminance": 0.12096
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B4CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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