#5647EF#5647EF

#5647EF is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.6% C 0.239 H 278.2°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#5647EF
RGBrgb(86, 71, 239)
HSLhsl(245, 84%, 61%)
HSVhsv(245, 70%, 94%)
CMYKcmyk(64%, 70.3%, 0%, 6.3%)
CIE-LABlab(42.33, 54.01, -82.10)
CIE-LCHlch(42.33, 98.27, 303.34°)
OKLaboklab(52.6% 0.0343 -0.237)
OKLCHoklch(52.6% 0.239 278.2)
XYZxyz(21.6660, 12.7151, 82.9571)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5647EF #E0EF47
analogous
#478CEF #5647EF #AA47EF
triadic
#5647EF #EF5647 #47EF56
tetradic
#5647EF #EF478C #E0EF47 #47EFAA
square
#5647EF #EF478C #E0EF47 #47EFAA
split-complementary
#5647EF #EFAA47 #8CEF47
monochromatic
#1D0FAD #2714E5 #5647EF #8A7FF4 #BDB8F9

Accessibility & contrast

On white

5.93
#5647EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5647EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5647EF
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5647EF#FFFFFF#000000##FFFFFF
##5647EF1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BF4
Deuteranopia (green-blind)
#005DEC
Tritanopia (blue-blind)
#007596
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5647ef;
/* rgb */ color: rgb(86, 71, 239);
/* oklch */ color: oklch(52.6% 0.239 278.2);
Tailwind
colors: {
  custom: {
    50: '#977cf6',
    500: '#5647ef',
    950: '#000000',
  },
}
SCSS
$custom: #5647ef;
$custom-light: #977cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#5647ef",
  "rgb": {
    "r": 86,
    "g": 71,
    "b": 239
  },
  "hsl": {
    "h": 245.357,
    "s": 84,
    "l": 60.784
  },
  "oklch": {
    "l": 0.52602,
    "c": 0.23945,
    "h": 278.2
  },
  "luminance": 0.12717
}

Semantic roles & 50–950 ramp

primary
#5647EF
secondary
#E3E9A9
accent
#E005CD
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5647EF

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

Preview Lab → · Contrast checker → · Palette generator →

#5647EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva