#5747BD#5747BD

#5747BD is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.4% C 0.178 H 283.7°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5747BD
RGBrgb(87, 71, 189)
HSLhsl(248, 47%, 51%)
HSVhsv(248, 62%, 74%)
CMYKcmyk(54%, 62.4%, 0%, 25.9%)
CIE-LABlab(38.21, 38.72, -60.11)
CIE-LCHlch(38.21, 71.50, 302.79°)
OKLaboklab(48.36% 0.0421 -0.1725)
OKLCHoklch(48.36% 0.178 283.7)
XYZxyz(15.3662, 10.2060, 49.2945)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5747BD #ADBD47
analogous
#4772BD #5747BD #9247BD
triadic
#5747BD #BD5747 #47BD57
tetradic
#5747BD #BD4772 #ADBD47 #47BD92
square
#5747BD #BD4772 #ADBD47 #47BD92
split-complementary
#5747BD #BD9247 #72BD47
monochromatic
#2D2465 #413492 #5747BD #8074CD #A9A1DD

Accessibility & contrast

On white

6.90
#5747BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5747BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5747BD
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5747BD#FFFFFF#000000##FFFFFF
##5747BD1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#0056BB
Tritanopia (blue-blind)
#2B647B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5747bd;
/* rgb */ color: rgb(87, 71, 189);
/* oklch */ color: oklch(48.4% 0.178 283.7);
Tailwind
colors: {
  custom: {
    50: '#8f7bd2',
    500: '#5747bd',
    950: '#000000',
  },
}
SCSS
$custom: #5747bd;
$custom-light: #8f7bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5747bd",
  "rgb": {
    "r": 87,
    "g": 71,
    "b": 189
  },
  "hsl": {
    "h": 248.136,
    "s": 47.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48355,
    "c": 0.17754,
    "h": 283.7
  },
  "luminance": 0.10207
}

Semantic roles & 50–950 ramp

primary
#5747BD
secondary
#C3CA96
accent
#D751C5
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5747BD

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

Preview Lab → · Contrast checker → · Palette generator →

#5747BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva