#5B5ECC#5B5ECC

#5B5ECC is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.8% C 0.167 H 278.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5B5ECC
RGBrgb(91, 94, 204)
HSLhsl(238, 53%, 58%)
HSVhsv(238, 55%, 80%)
CMYKcmyk(55.4%, 53.9%, 0%, 20%)
CIE-LABlab(45.06, 30.23, -57.69)
CIE-LCHlch(45.06, 65.13, 297.65°)
OKLaboklab(53.84% 0.0233 -0.1651)
OKLCHoklch(53.84% 0.167 278)
XYZxyz(19.2127, 14.5879, 58.9184)
Luminance0.1459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5ECC #CCC95B
analogous
#5B96CC #5B5ECC #905BCC
triadic
#5B5ECC #CC5B5E #5ECC5B
tetradic
#5B5ECC #CC5B96 #CCC95B #5BCC90
square
#5B5ECC #CC5B96 #CCC95B #5BCC90
split-complementary
#5B5ECC #CC905B #96CC5B
monochromatic
#292B84 #373BB2 #5B5ECC #8A8CDB #B8BAE9

Accessibility & contrast

On white

5.36
#5B5ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5B5ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5ECC
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5ECC#FFFFFF#000000##FFFFFF
##5B5ECC1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A6FD0
Deuteranopia (green-blind)
#0066CA
Tritanopia (blue-blind)
#20778C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b5ecc;
/* rgb */ color: rgb(91, 94, 204);
/* oklch */ color: oklch(53.8% 0.167 278.0);
Tailwind
colors: {
  custom: {
    50: '#928bdc',
    500: '#5b5ecc',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ecc;
$custom-light: #928bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ecc",
  "rgb": {
    "r": 91,
    "g": 94,
    "b": 204
  },
  "hsl": {
    "h": 238.407,
    "s": 52.558,
    "l": 57.843
  },
  "oklch": {
    "l": 0.53841,
    "c": 0.16677,
    "h": 278
  },
  "luminance": 0.14589
}

Semantic roles & 50–950 ramp

primary
#5B5ECC
secondary
#D8D7AB
accent
#D84CDC
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5B5ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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