#5B4CC2#5B4CC2

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

Color values

HEX#5B4CC2
RGBrgb(91, 76, 194)
HSLhsl(248, 49%, 53%)
HSVhsv(248, 61%, 76%)
CMYKcmyk(53.1%, 60.8%, 0%, 23.9%)
CIE-LABlab(40.06, 38.04, -60.01)
CIE-LCHlch(40.06, 71.05, 302.37°)
OKLaboklab(49.91% 0.042 -0.172)
OKLCHoklch(49.91% 0.177 283.7)
XYZxyz(16.6335, 11.2871, 52.3306)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4CC2 #B3C24C
analogous
#4C78C2 #5B4CC2 #964CC2
triadic
#5B4CC2 #C25B4C #4CC25B
tetradic
#5B4CC2 #C24C78 #B3C24C #4CC296
square
#5B4CC2 #C24C78 #B3C24C #4CC296
split-complementary
#5B4CC2 #C2964C #78C24C
monochromatic
#2F266E #42359C #5B4CC2 #857AD2 #AFA7E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B4CC2#FFFFFF#000000##FFFFFF
##5B4CC21.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)
#0062C6
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#306880
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b4cc2;
/* rgb */ color: rgb(91, 76, 194);
/* oklch */ color: oklch(49.9% 0.177 283.7);
Tailwind
colors: {
  custom: {
    50: '#927fd5',
    500: '#5b4cc2',
    950: '#000000',
  },
}
SCSS
$custom: #5b4cc2;
$custom-light: #927fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4cc2",
  "rgb": {
    "r": 91,
    "g": 76,
    "b": 194
  },
  "hsl": {
    "h": 247.627,
    "s": 49.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49912,
    "c": 0.17709,
    "h": 283.7
  },
  "luminance": 0.11288
}

Semantic roles & 50–950 ramp

primary
#5B4CC2
secondary
#C8CE9B
accent
#D94FC7
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5B4CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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