#5747E2#5747E2

#5747E2 is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.5% C 0.224 H 279.7°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#5747E2
RGBrgb(87, 71, 226)
HSLhsl(246, 73%, 58%)
HSVhsv(246, 69%, 89%)
CMYKcmyk(61.5%, 68.6%, 0%, 11.4%)
CIE-LABlab(41.25, 50.16, -76.50)
CIE-LCHlch(41.25, 91.48, 303.25°)
OKLaboklab(51.5% 0.0377 -0.2206)
OKLCHoklch(51.5% 0.224 279.7)
XYZxyz(19.9068, 12.0222, 73.2083)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5747E2 #D2E247
analogous
#4784E2 #5747E2 #A547E2
triadic
#5747E2 #E25747 #47E257
tetradic
#5747E2 #E24784 #D2E247 #47E2A5
square
#5747E2 #E24784 #D2E247 #47E2A5
split-complementary
#5747E2 #E2A547 #84E247
monochromatic
#251897 #3220CC #5747E2 #877CEA #B8B1F3

Accessibility & contrast

On white

6.17
#5747E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5747E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5747E2
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5747E2#FFFFFF#000000##FFFFFF
##5747E21.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#005BDF
Tritanopia (blue-blind)
#00708F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5747e2;
/* rgb */ color: rgb(87, 71, 226);
/* oklch */ color: oklch(51.5% 0.224 279.7);
Tailwind
colors: {
  custom: {
    50: '#957cec',
    500: '#5747e2',
    950: '#000000',
  },
}
SCSS
$custom: #5747e2;
$custom-light: #957cec;
$custom-dark: #000000;
JSON
{
  "hex": "#5747e2",
  "rgb": {
    "r": 87,
    "g": 71,
    "b": 226
  },
  "hsl": {
    "h": 246.194,
    "s": 72.77,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51497,
    "c": 0.2238,
    "h": 279.7
  },
  "luminance": 0.12024
}

Semantic roles & 50–950 ramp

primary
#5747E2
secondary
#DBE1A4
accent
#EF38DD
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5747E2

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

Preview Lab → · Contrast checker → · Palette generator →

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