#5B5CD7#5B5CD7

#5B5CD7 is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.3% C 0.184 H 278.0°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5B5CD7
RGBrgb(91, 92, 215)
HSLhsl(240, 61%, 60%)
HSVhsv(240, 58%, 84%)
CMYKcmyk(57.7%, 57.2%, 0%, 15.7%)
CIE-LABlab(45.34, 35.00, -63.56)
CIE-LCHlch(45.34, 72.56, 298.84°)
OKLaboklab(54.28% 0.0256 -0.1824)
OKLCHoklch(54.28% 0.184 278)
XYZxyz(20.4034, 14.7833, 66.0551)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CD7 #D7D65B
analogous
#5B9AD7 #5B5CD7 #985BD7
triadic
#5B5CD7 #D75B5C #5CD75B
tetradic
#5B5CD7 #D75B9A #D7D65B #5BD798
square
#5B5CD7 #D75B9A #D7D65B #5BD798
split-complementary
#5B5CD7 #D7985B #9AD75B
monochromatic
#242594 #3031C5 #5B5CD7 #8C8DE3 #BDBEEF

Accessibility & contrast

On white

5.31
#5B5CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5B5CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CD7
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CD7#FFFFFF#000000##FFFFFF
##5B5CD71.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#0066D4
Tritanopia (blue-blind)
#057990
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b5cd7;
/* rgb */ color: rgb(91, 92, 215);
/* oklch */ color: oklch(54.3% 0.184 278.0);
Tailwind
colors: {
  custom: {
    50: '#948ae4',
    500: '#5b5cd7',
    950: '#000000',
  },
}
SCSS
$custom: #5b5cd7;
$custom-light: #948ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5cd7",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 239.516,
    "s": 60.784,
    "l": 60
  },
  "oklch": {
    "l": 0.54284,
    "c": 0.18417,
    "h": 278
  },
  "luminance": 0.14785
}

Semantic roles & 50–950 ramp

primary
#5B5CD7
secondary
#DFDEAF
accent
#E344E4
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5B5CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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