#5747DF#5747DF

#5747DF is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 51.2% C 0.220 H 280.0°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#5747DF
RGBrgb(87, 71, 223)
HSLhsl(246, 70%, 58%)
HSVhsv(246, 68%, 87%)
CMYKcmyk(61%, 68.2%, 0%, 12.5%)
CIE-LABlab(40.99, 49.24, -75.22)
CIE-LCHlch(40.99, 89.90, 303.21°)
OKLaboklab(51.23% 0.0382 -0.2168)
OKLCHoklch(51.23% 0.22 280)
XYZxyz(19.4988, 11.8590, 71.0592)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5747DF #CFDF47
analogous
#4783DF #5747DF #A347DF
triadic
#5747DF #DF5747 #47DF57
tetradic
#5747DF #DF4783 #CFDF47 #47DFA3
square
#5747DF #DF4783 #CFDF47 #47DFA3
split-complementary
#5747DF #DFA347 #83DF47
monochromatic
#261992 #3422C6 #5747DF #877BE8 #B6AFF1

Accessibility & contrast

On white

6.23
#5747DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5747DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5747DF
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5747DF#FFFFFF#000000##FFFFFF
##5747DF1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E4
Deuteranopia (green-blind)
#005BDC
Tritanopia (blue-blind)
#006F8D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5747df;
/* rgb */ color: rgb(87, 71, 223);
/* oklch */ color: oklch(51.2% 0.220 280.0);
Tailwind
colors: {
  custom: {
    50: '#957cea',
    500: '#5747df',
    950: '#000000',
  },
}
SCSS
$custom: #5747df;
$custom-light: #957cea;
$custom-dark: #000000;
JSON
{
  "hex": "#5747df",
  "rgb": {
    "r": 87,
    "g": 71,
    "b": 223
  },
  "hsl": {
    "h": 246.316,
    "s": 70.37,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51231,
    "c": 0.22017,
    "h": 280
  },
  "luminance": 0.1186
}

Semantic roles & 50–950 ramp

primary
#5747DF
secondary
#D9DFA2
accent
#ED3BDA
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5747DF

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

Preview Lab → · Contrast checker → · Palette generator →

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