#5B4CCB#5B4CCB

#5B4CCB is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.6% C 0.189 H 282.7°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#5B4CCB
RGBrgb(91, 76, 203)
HSLhsl(247, 55%, 55%)
HSVhsv(247, 63%, 80%)
CMYKcmyk(55.2%, 62.6%, 0%, 20.4%)
CIE-LABlab(40.74, 40.82, -64.12)
CIE-LCHlch(40.74, 76.01, 302.48°)
OKLaboklab(50.62% 0.0414 -0.1841)
OKLCHoklch(50.62% 0.189 282.7)
XYZxyz(17.6750, 11.7038, 57.8160)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4CCB #BCCB4C
analogous
#4C7CCB #5B4CCB #9B4CCB
triadic
#5B4CCB #CB5B4C #4CCB5B
tetradic
#5B4CCB #CB4C7C #BCCB4C #4CCB9B
square
#5B4CCB #CB4C7C #BCCB4C #4CCB9B
split-complementary
#5B4CCB #CB9B4C #7CCB4C
monochromatic
#2D2379 #3F31A9 #5B4CCB #867BD9 #B2ABE7

Accessibility & contrast

On white

6.29
#5B4CCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5B4CCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4CCB
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4CCB#FFFFFF#000000##FFFFFF
##5B4CCB1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#266B84
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5b4ccb;
/* rgb */ color: rgb(91, 76, 203);
/* oklch */ color: oklch(50.6% 0.189 282.7);
Tailwind
colors: {
  custom: {
    50: '#937fdc',
    500: '#5b4ccb',
    950: '#000000',
  },
}
SCSS
$custom: #5b4ccb;
$custom-light: #937fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4ccb",
  "rgb": {
    "r": 91,
    "g": 76,
    "b": 203
  },
  "hsl": {
    "h": 247.087,
    "s": 54.978,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50624,
    "c": 0.18874,
    "h": 282.7
  },
  "luminance": 0.11705
}

Semantic roles & 50–950 ramp

primary
#5B4CCB
secondary
#CED49F
accent
#DE49CD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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