#5747E5#5747E5

#5747E5 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.8% C 0.227 H 279.4°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5747E5
RGBrgb(87, 71, 229)
HSLhsl(246, 75%, 59%)
HSVhsv(246, 69%, 90%)
CMYKcmyk(62%, 69%, 0%, 10.2%)
CIE-LABlab(41.51, 51.08, -77.78)
CIE-LCHlch(41.51, 93.05, 303.29°)
OKLaboklab(51.77% 0.0373 -0.2243)
OKLCHoklch(51.77% 0.227 279.4)
XYZxyz(20.3221, 12.1883, 75.3952)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5747E5 #D5E547
analogous
#4786E5 #5747E5 #A647E5
triadic
#5747E5 #E55747 #47E557
tetradic
#5747E5 #E54786 #D5E547 #47E5A6
square
#5747E5 #E54786 #D5E547 #47E5A6
split-complementary
#5747E5 #E5A647 #86E547
monochromatic
#24169C #301ED1 #5747E5 #887DED #B9B2F4

Accessibility & contrast

On white

6.11
#5747E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5747E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5747E5
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5747E5#FFFFFF#000000##FFFFFF
##5747E51.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EA
Deuteranopia (green-blind)
#005CE2
Tritanopia (blue-blind)
#007291
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5747e5;
/* rgb */ color: rgb(87, 71, 229);
/* oklch */ color: oklch(51.8% 0.227 279.4);
Tailwind
colors: {
  custom: {
    50: '#967cee',
    500: '#5747e5',
    950: '#000000',
  },
}
SCSS
$custom: #5747e5;
$custom-light: #967cee;
$custom-dark: #000000;
JSON
{
  "hex": "#5747e5",
  "rgb": {
    "r": 87,
    "g": 71,
    "b": 229
  },
  "hsl": {
    "h": 246.076,
    "s": 75.238,
    "l": 58.824
  },
  "oklch": {
    "l": 0.51766,
    "c": 0.2274,
    "h": 279.4
  },
  "luminance": 0.1219
}

Semantic roles & 50–950 ramp

primary
#5747E5
secondary
#DDE3A5
accent
#F236DF
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5747E5

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

Preview Lab → · Contrast checker → · Palette generator →

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