#5B4DD7#5B4DD7

#5B4DD7 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 51.8% C 0.203 H 281.2°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#5B4DD7
RGBrgb(91, 77, 215)
HSLhsl(246, 63%, 57%)
HSVhsv(246, 64%, 84%)
CMYKcmyk(57.7%, 64.2%, 0%, 15.7%)
CIE-LABlab(41.90, 43.95, -69.14)
CIE-LCHlch(41.90, 81.93, 302.44°)
OKLaboklab(51.76% 0.0394 -0.1989)
OKLCHoklch(51.76% 0.203 281.2)
XYZxyz(19.2302, 12.4369, 65.6640)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4DD7 #C9D74D
analogous
#4D84D7 #5B4DD7 #A04DD7
triadic
#5B4DD7 #D75B4D #4DD75B
tetradic
#5B4DD7 #D74D84 #C9D74D #4DD7A0
square
#5B4DD7 #D74D84 #C9D74D #4DD7A0
split-complementary
#5B4DD7 #D7A04D #84D74D
monochromatic
#2A1F8A #392ABC #5B4DD7 #897FE2 #B7B1ED

Accessibility & contrast

On white

6.02
#5B4DD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5B4DD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4DD7
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4DD7#FFFFFF#000000##FFFFFF
##5B4DD71.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DB
Deuteranopia (green-blind)
#005ED4
Tritanopia (blue-blind)
#0D708B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b4dd7;
/* rgb */ color: rgb(91, 77, 215);
/* oklch */ color: oklch(51.8% 0.203 281.2);
Tailwind
colors: {
  custom: {
    50: '#9580e4',
    500: '#5b4dd7',
    950: '#000000',
  },
}
SCSS
$custom: #5b4dd7;
$custom-light: #9580e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4dd7",
  "rgb": {
    "r": 91,
    "g": 77,
    "b": 215
  },
  "hsl": {
    "h": 246.087,
    "s": 63.303,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51762,
    "c": 0.20276,
    "h": 281.2
  },
  "luminance": 0.12438
}

Semantic roles & 50–950 ramp

primary
#5B4DD7
secondary
#D6DCA4
accent
#E641D6
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5B4DD7

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

Preview Lab → · Contrast checker → · Palette generator →

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