#5645DC#5645DC

#5645DC is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.6% C 0.219 H 280.2°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5645DC
RGBrgb(86, 69, 220)
HSLhsl(247, 68%, 57%)
HSVhsv(247, 69%, 86%)
CMYKcmyk(60.9%, 68.6%, 0%, 13.7%)
CIE-LABlab(40.25, 49.29, -74.73)
CIE-LCHlch(40.25, 89.52, 303.41°)
OKLaboklab(50.6% 0.0389 -0.2154)
OKLCHoklch(50.6% 0.219 280.2)
XYZxyz(18.8801, 11.4006, 68.9019)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5645DC #CBDC45
analogous
#4580DC #5645DC #A245DC
triadic
#5645DC #DC5645 #45DC56
tetradic
#5645DC #DC4580 #CBDC45 #45DCA2
square
#5645DC #DC4580 #CBDC45 #45DCA2
split-complementary
#5645DC #DCA245 #80DC45
monochromatic
#271A8C #3624C0 #5645DC #8579E6 #B4ACEF

Accessibility & contrast

On white

6.40
#5645DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5645DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5645DC
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5645DC#FFFFFF#000000##FFFFFF
##5645DC1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E1
Deuteranopia (green-blind)
#0059D9
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5645dc;
/* rgb */ color: rgb(86, 69, 220);
/* oklch */ color: oklch(50.6% 0.219 280.2);
Tailwind
colors: {
  custom: {
    50: '#947ae8',
    500: '#5645dc',
    950: '#000000',
  },
}
SCSS
$custom: #5645dc;
$custom-light: #947ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#5645dc",
  "rgb": {
    "r": 86,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 246.755,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50598,
    "c": 0.2189,
    "h": 280.2
  },
  "luminance": 0.11402
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5645DC

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

Preview Lab → · Contrast checker → · Palette generator →

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