#5B4FD3#5B4FD3

#5B4FD3 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.8% C 0.195 H 281.2°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#5B4FD3
RGBrgb(91, 79, 211)
HSLhsl(245, 60%, 57%)
HSVhsv(245, 63%, 83%)
CMYKcmyk(56.9%, 62.6%, 0%, 17.3%)
CIE-LABlab(42.03, 41.54, -66.64)
CIE-LCHlch(42.03, 78.53, 301.94°)
OKLaboklab(51.76% 0.038 -0.1915)
OKLCHoklch(51.76% 0.195 281.2)
XYZxyz(18.8646, 12.5180, 63.0375)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FD3 #C7D34F
analogous
#4F85D3 #5B4FD3 #9D4FD3
triadic
#5B4FD3 #D35B4F #4FD35B
tetradic
#5B4FD3 #D34F85 #C7D34F #4FD39D
square
#5B4FD3 #D34F85 #C7D34F #4FD39D
split-complementary
#5B4FD3 #D39D4F #85D34F
monochromatic
#2B2286 #3A2EB7 #5B4FD3 #8980DF #B6B1EB

Accessibility & contrast

On white

5.99
#5B4FD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5B4FD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FD3
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FD3#FFFFFF#000000##FFFFFF
##5B4FD31.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D7
Deuteranopia (green-blind)
#005ED0
Tritanopia (blue-blind)
#18708A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b4fd3;
/* rgb */ color: rgb(91, 79, 211);
/* oklch */ color: oklch(51.8% 0.195 281.2);
Tailwind
colors: {
  custom: {
    50: '#9481e1',
    500: '#5b4fd3',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fd3;
$custom-light: #9481e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fd3",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 211
  },
  "hsl": {
    "h": 245.455,
    "s": 60,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51756,
    "c": 0.19527,
    "h": 281.2
  },
  "luminance": 0.12519
}

Semantic roles & 50–950 ramp

primary
#5B4FD3
secondary
#D5DAA4
accent
#E345D5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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