#5B4CD5#5B4CD5

#5B4CD5 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.4% C 0.201 H 281.6°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5B4CD5
RGBrgb(91, 76, 213)
HSLhsl(247, 62%, 57%)
HSVhsv(247, 64%, 84%)
CMYKcmyk(57.3%, 64.3%, 0%, 16.5%)
CIE-LABlab(41.53, 43.91, -68.61)
CIE-LCHlch(41.53, 81.46, 302.62°)
OKLaboklab(51.44% 0.0405 -0.1973)
OKLCHoklch(51.44% 0.201 281.6)
XYZxyz(18.9053, 12.1959, 64.2957)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4CD5 #C6D54C
analogous
#4C82D5 #5B4CD5 #9F4CD5
triadic
#5B4CD5 #D55B4C #4CD55B
tetradic
#5B4CD5 #D54C82 #C6D54C #4CD59F
square
#5B4CD5 #D54C82 #C6D54C #4CD59F
split-complementary
#5B4CD5 #D59F4C #82D54C
monochromatic
#2B2087 #3B2BB9 #5B4CD5 #887EE1 #B6AFEC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B4CD5#FFFFFF#000000##FFFFFF
##5B4CD51.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)
#0067D9
Deuteranopia (green-blind)
#005DD2
Tritanopia (blue-blind)
#146E8A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b4cd5;
/* rgb */ color: rgb(91, 76, 213);
/* oklch */ color: oklch(51.4% 0.201 281.6);
Tailwind
colors: {
  custom: {
    50: '#957fe3',
    500: '#5b4cd5',
    950: '#000000',
  },
}
SCSS
$custom: #5b4cd5;
$custom-light: #957fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4cd5",
  "rgb": {
    "r": 91,
    "g": 76,
    "b": 213
  },
  "hsl": {
    "h": 246.569,
    "s": 61.991,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51439,
    "c": 0.20145,
    "h": 281.6
  },
  "luminance": 0.12197
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B4CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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