#5B5CD5#5B5CD5

#5B5CD5 is a mid, vivid blue. Relative luminance 0.147; OKLCH L 54.1% C 0.182 H 278.1°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5B5CD5
RGBrgb(91, 92, 213)
HSLhsl(240, 59%, 60%)
HSVhsv(240, 57%, 84%)
CMYKcmyk(57.3%, 56.8%, 0%, 16.5%)
CIE-LABlab(45.19, 34.36, -62.64)
CIE-LCHlch(45.19, 71.45, 298.74°)
OKLaboklab(54.13% 0.0256 -0.1797)
OKLCHoklch(54.13% 0.182 278.1)
XYZxyz(20.1479, 14.6811, 64.7099)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CD5 #D5D45B
analogous
#5B99D5 #5B5CD5 #975BD5
triadic
#5B5CD5 #D55B5C #5CD55B
tetradic
#5B5CD5 #D55B99 #D5D45B #5BD597
square
#5B5CD5 #D55B99 #D5D45B #5BD597
split-complementary
#5B5CD5 #D5975B #99D55B
monochromatic
#252691 #3233C1 #5B5CD5 #8C8CE1 #BCBDEE

Accessibility & contrast

On white

5.33
#5B5CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5B5CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CD5
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CD5#FFFFFF#000000##FFFFFF
##5B5CD51.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D9
Deuteranopia (green-blind)
#0066D3
Tritanopia (blue-blind)
#0D798F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b5cd5;
/* rgb */ color: rgb(91, 92, 213);
/* oklch */ color: oklch(54.1% 0.182 278.1);
Tailwind
colors: {
  custom: {
    50: '#948ae3',
    500: '#5b5cd5',
    950: '#000000',
  },
}
SCSS
$custom: #5b5cd5;
$custom-light: #948ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5cd5",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 213
  },
  "hsl": {
    "h": 239.508,
    "s": 59.223,
    "l": 59.608
  },
  "oklch": {
    "l": 0.54134,
    "c": 0.18152,
    "h": 278.1
  },
  "luminance": 0.14683
}

Semantic roles & 50–950 ramp

primary
#5B5CD5
secondary
#DEDDAE
accent
#E145E2
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B15
muted
#7E7C84

Preview Lab

Preview with #5B5CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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