#5B4DCD#5B4DCD

#5B4DCD is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.9% C 0.190 H 282.2°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5B4DCD
RGBrgb(91, 77, 205)
HSLhsl(247, 56%, 55%)
HSVhsv(247, 62%, 80%)
CMYKcmyk(55.6%, 62.4%, 0%, 19.6%)
CIE-LABlab(41.12, 40.85, -64.67)
CIE-LCHlch(41.12, 76.49, 302.28°)
OKLaboklab(50.95% 0.0403 -0.1857)
OKLCHoklch(50.95% 0.19 282.2)
XYZxyz(17.9843, 11.9386, 59.1025)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4DCD #BFCD4D
analogous
#4D7FCD #5B4DCD #9B4DCD
triadic
#5B4DCD #CD5B4D #4DCD5B
tetradic
#5B4DCD #CD4D7F #BFCD4D #4DCD9B
square
#5B4DCD #CD4D7F #BFCD4D #4DCD9B
split-complementary
#5B4DCD #CD9B4D #7FCD4D
monochromatic
#2D237D #3E30AC #5B4DCD #877DDA #B3ADE8

Accessibility & contrast

On white

6.20
#5B4DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5B4DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4DCD
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4DCD#FFFFFF#000000##FFFFFF
##5B4DCD1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#005CCA
Tritanopia (blue-blind)
#236C86
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b4dcd;
/* rgb */ color: rgb(91, 77, 205);
/* oklch */ color: oklch(50.9% 0.190 282.2);
Tailwind
colors: {
  custom: {
    50: '#947fdd',
    500: '#5b4dcd',
    950: '#000000',
  },
}
SCSS
$custom: #5b4dcd;
$custom-light: #947fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4dcd",
  "rgb": {
    "r": 91,
    "g": 77,
    "b": 205
  },
  "hsl": {
    "h": 246.563,
    "s": 56.14,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50947,
    "c": 0.19006,
    "h": 282.2
  },
  "luminance": 0.1194
}

Semantic roles & 50–950 ramp

primary
#5B4DCD
secondary
#D0D6A0
accent
#DF48CF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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