#5747AB#5747AB

#5747AB is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.0% C 0.154 H 286.2°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#5747AB
RGBrgb(87, 71, 171)
HSLhsl(250, 41%, 47%)
HSVhsv(250, 58%, 67%)
CMYKcmyk(49.1%, 58.5%, 0%, 32.9%)
CIE-LABlab(36.88, 33.16, -51.63)
CIE-LCHlch(36.88, 61.36, 302.71°)
OKLaboklab(46.96% 0.0429 -0.1476)
OKLCHoklch(46.96% 0.154 286.2)
XYZxyz(13.5322, 9.4724, 39.6355)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5747AB #9BAB47
analogous
#4769AB #5747AB #8947AB
triadic
#5747AB #AB5747 #47AB57
tetradic
#5747AB #AB4769 #9BAB47 #47AB89
square
#5747AB #AB4769 #9BAB47 #47AB89
split-complementary
#5747AB #AB8947 #69AB47
monochromatic
#2B2355 #413580 #5747AB #7B6DC2 #A298D4

Accessibility & contrast

On white

7.25
#5747AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5747AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5747AB
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5747AB#FFFFFF#000000##FFFFFF
##5747AB1.007.252.897.25
#FFFFFF7.251.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#3A5E72
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5747ab;
/* rgb */ color: rgb(87, 71, 171);
/* oklch */ color: oklch(47.0% 0.154 286.2);
Tailwind
colors: {
  custom: {
    50: '#8d7bc5',
    500: '#5747ab',
    950: '#000000',
  },
}
SCSS
$custom: #5747ab;
$custom-light: #8d7bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5747ab",
  "rgb": {
    "r": 87,
    "g": 71,
    "b": 171
  },
  "hsl": {
    "h": 249.6,
    "s": 41.322,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46959,
    "c": 0.15366,
    "h": 286.2
  },
  "luminance": 0.09473
}

Semantic roles & 50–950 ramp

primary
#5747AB
secondary
#B8C08D
accent
#D157BE
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5747AB

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

Preview Lab → · Contrast checker → · Palette generator →

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