#5B4BC5#5B4BC5

#5B4BC5 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 50.0% C 0.182 H 283.6°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#5B4BC5
RGBrgb(91, 75, 197)
HSLhsl(248, 51%, 53%)
HSVhsv(248, 62%, 77%)
CMYKcmyk(53.8%, 61.9%, 0%, 22.7%)
CIE-LABlab(40.06, 39.56, -61.75)
CIE-LCHlch(40.06, 73.34, 302.64°)
OKLaboklab(49.98% 0.0428 -0.1772)
OKLCHoklch(49.98% 0.182 283.6)
XYZxyz(16.9054, 11.2865, 54.1002)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4BC5 #B5C54B
analogous
#4B78C5 #5B4BC5 #984BC5
triadic
#5B4BC5 #C55B4B #4BC55B
tetradic
#5B4BC5 #C54B78 #B5C54B #4BC598
square
#5B4BC5 #C54B78 #B5C54B #4BC598
split-complementary
#5B4BC5 #C5984B #78C54B
monochromatic
#2F2471 #42339F #5B4BC5 #8579D4 #AFA8E3

Accessibility & contrast

On white

6.45
#5B4BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5B4BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4BC5
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4BC5#FFFFFF#000000##FFFFFF
##5B4BC51.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#005AC3
Tritanopia (blue-blind)
#2D6881
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b4bc5;
/* rgb */ color: rgb(91, 75, 197);
/* oklch */ color: oklch(50.0% 0.182 283.6);
Tailwind
colors: {
  custom: {
    50: '#937ed7',
    500: '#5b4bc5',
    950: '#000000',
  },
}
SCSS
$custom: #5b4bc5;
$custom-light: #937ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4bc5",
  "rgb": {
    "r": 91,
    "g": 75,
    "b": 197
  },
  "hsl": {
    "h": 247.869,
    "s": 51.261,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49982,
    "c": 0.18228,
    "h": 283.6
  },
  "luminance": 0.11288
}

Semantic roles & 50–950 ramp

primary
#5B4BC5
secondary
#C9D09C
accent
#DB4DC8
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5B4BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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