#5747DC#5747DC

#5747DC is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 51.0% C 0.217 H 280.3°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#5747DC
RGBrgb(87, 71, 220)
HSLhsl(246, 68%, 57%)
HSVhsv(246, 68%, 86%)
CMYKcmyk(60.5%, 67.7%, 0%, 13.7%)
CIE-LABlab(40.73, 48.32, -73.93)
CIE-LCHlch(40.73, 88.32, 303.17°)
OKLaboklab(50.97% 0.0386 -0.213)
OKLCHoklch(50.97% 0.217 280.3)
XYZxyz(19.0979, 11.6986, 68.9479)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5747DC #CCDC47
analogous
#4782DC #5747DC #A247DC
triadic
#5747DC #DC5747 #47DC57
tetradic
#5747DC #DC4782 #CCDC47 #47DCA2
square
#5747DC #DC4782 #CCDC47 #47DCA2
split-complementary
#5747DC #DCA247 #82DC47
monochromatic
#271B8E #3625C1 #5747DC #867AE6 #B5AEF0

Accessibility & contrast

On white

6.29
#5747DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5747DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5747DC
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5747DC#FFFFFF#000000##FFFFFF
##5747DC1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E1
Deuteranopia (green-blind)
#005AD9
Tritanopia (blue-blind)
#006E8C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5747dc;
/* rgb */ color: rgb(87, 71, 220);
/* oklch */ color: oklch(51.0% 0.217 280.3);
Tailwind
colors: {
  custom: {
    50: '#947ce8',
    500: '#5747dc',
    950: '#000000',
  },
}
SCSS
$custom: #5747dc;
$custom-light: #947ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#5747dc",
  "rgb": {
    "r": 87,
    "g": 71,
    "b": 220
  },
  "hsl": {
    "h": 246.443,
    "s": 68.037,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50966,
    "c": 0.21653,
    "h": 280.3
  },
  "luminance": 0.117
}

Semantic roles & 50–950 ramp

primary
#5747DC
secondary
#D7DEA1
accent
#EB3DD8
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5747DC

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

Preview Lab → · Contrast checker → · Palette generator →

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