#5B4CCC#5B4CCC

#5B4CCC is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.7% C 0.190 H 282.6°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5B4CCC
RGBrgb(91, 76, 204)
HSLhsl(247, 56%, 55%)
HSVhsv(247, 63%, 80%)
CMYKcmyk(55.4%, 62.7%, 0%, 20%)
CIE-LABlab(40.82, 41.13, -64.58)
CIE-LCHlch(40.82, 76.56, 302.49°)
OKLaboklab(50.7% 0.0413 -0.1855)
OKLCHoklch(50.7% 0.19 282.6)
XYZxyz(17.7946, 11.7516, 58.4456)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4CCC #BDCC4C
analogous
#4C7DCC #5B4CCC #9B4CCC
triadic
#5B4CCC #CC5B4C #4CCC5B
tetradic
#5B4CCC #CC4C7D #BDCC4C #4CCC9B
square
#5B4CCC #CC4C7D #BDCC4C #4CCC9B
split-complementary
#5B4CCC #CC9B4C #7DCC4C
monochromatic
#2D237B #3F31AA #5B4CCC #877CDA #B2ABE7

Accessibility & contrast

On white

6.27
#5B4CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5B4CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4CCC
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4CCC#FFFFFF#000000##FFFFFF
##5B4CCC1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D0
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#246B85
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5b4ccc;
/* rgb */ color: rgb(91, 76, 204);
/* oklch */ color: oklch(50.7% 0.190 282.6);
Tailwind
colors: {
  custom: {
    50: '#947fdc',
    500: '#5b4ccc',
    950: '#000000',
  },
}
SCSS
$custom: #5b4ccc;
$custom-light: #947fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4ccc",
  "rgb": {
    "r": 91,
    "g": 76,
    "b": 204
  },
  "hsl": {
    "h": 247.031,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50704,
    "c": 0.19003,
    "h": 282.6
  },
  "luminance": 0.11753
}

Semantic roles & 50–950 ramp

primary
#5B4CCC
secondary
#CFD59F
accent
#DF49CD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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