#5B57BC#5B57BC

#5B57BC is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.4% C 0.154 H 281.3°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5B57BC
RGBrgb(91, 87, 188)
HSLhsl(242, 43%, 54%)
HSVhsv(242, 54%, 74%)
CMYKcmyk(51.6%, 53.7%, 0%, 26.3%)
CIE-LABlab(42.26, 29.46, -52.95)
CIE-LCHlch(42.26, 60.59, 299.09°)
OKLaboklab(51.41% 0.0302 -0.1512)
OKLCHoklch(51.41% 0.154 281.3)
XYZxyz(16.7969, 12.6704, 49.1278)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B57BC #B8BC57
analogous
#5786BC #5B57BC #8E57BC
triadic
#5B57BC #BC5B57 #57BC5B
tetradic
#5B57BC #BC5786 #B8BC57 #57BC8E
square
#5B57BC #BC5786 #B8BC57 #57BC8E
split-complementary
#5B57BC #BC8E57 #86BC57
monochromatic
#2E2C6D #413D99 #5B57BC #8683CD #B0AFDF

Accessibility & contrast

On white

5.94
#5B57BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5B57BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B57BC
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B57BC#FFFFFF#000000##FFFFFF
##5B57BC1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E67BF
Deuteranopia (green-blind)
#1160BA
Tritanopia (blue-blind)
#346E81
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b57bc;
/* rgb */ color: rgb(91, 87, 188);
/* oklch */ color: oklch(51.4% 0.154 281.3);
Tailwind
colors: {
  custom: {
    50: '#9086d1',
    500: '#5b57bc',
    950: '#000000',
  },
}
SCSS
$custom: #5b57bc;
$custom-light: #9086d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b57bc",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 188
  },
  "hsl": {
    "h": 242.376,
    "s": 42.979,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51408,
    "c": 0.15419,
    "h": 281.3
  },
  "luminance": 0.12671
}

Semantic roles & 50–950 ramp

primary
#5B57BC
secondary
#CBCDA2
accent
#D355CE
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5B57BC

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

Preview Lab → · Contrast checker → · Palette generator →

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