#5645D9#5645D9

#5645D9 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.3% C 0.215 H 280.5°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#5645D9
RGBrgb(86, 69, 217)
HSLhsl(247, 66%, 56%)
HSVhsv(247, 68%, 85%)
CMYKcmyk(60.4%, 68.2%, 0%, 14.9%)
CIE-LABlab(39.99, 48.37, -73.44)
CIE-LCHlch(39.99, 87.94, 303.37°)
OKLaboklab(50.33% 0.0393 -0.2116)
OKLCHoklch(50.33% 0.215 280.5)
XYZxyz(18.4863, 11.2431, 66.8282)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5645D9 #C8D945
analogous
#457ED9 #5645D9 #A045D9
triadic
#5645D9 #D95645 #45D956
tetradic
#5645D9 #D9457E #C8D945 #45D9A0
square
#5645D9 #D9457E #C8D945 #45D9A0
split-complementary
#5645D9 #D9A045 #7ED945
monochromatic
#281C88 #3726BB #5645D9 #8478E3 #B2ABEE

Accessibility & contrast

On white

6.46
#5645D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5645D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5645D9
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5645D9#FFFFFF#000000##FFFFFF
##5645D91.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DD
Deuteranopia (green-blind)
#0059D6
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5645d9;
/* rgb */ color: rgb(86, 69, 217);
/* oklch */ color: oklch(50.3% 0.215 280.5);
Tailwind
colors: {
  custom: {
    50: '#937ae6',
    500: '#5645d9',
    950: '#000000',
  },
}
SCSS
$custom: #5645d9;
$custom-light: #937ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5645d9",
  "rgb": {
    "r": 86,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 246.892,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50331,
    "c": 0.21526,
    "h": 280.5
  },
  "luminance": 0.11244
}

Semantic roles & 50–950 ramp

primary
#5645D9
secondary
#D4DB9E
accent
#E93FD5
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5645D9

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

Preview Lab → · Contrast checker → · Palette generator →

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