#5645E1#5645E1

#5645E1 is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 51.0% C 0.225 H 279.7°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#5645E1
RGBrgb(86, 69, 225)
HSLhsl(247, 72%, 58%)
HSVhsv(247, 69%, 88%)
CMYKcmyk(61.8%, 69.3%, 0%, 11.8%)
CIE-LABlab(40.69, 50.82, -76.86)
CIE-LCHlch(40.69, 92.15, 303.47°)
OKLaboklab(51.05% 0.0381 -0.2217)
OKLCHoklch(51.05% 0.225 279.7)
XYZxyz(19.5522, 11.6694, 72.4417)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5645E1 #D0E145
analogous
#4582E1 #5645E1 #A445E1
triadic
#5645E1 #E15645 #45E156
tetradic
#5645E1 #E14582 #D0E145 #45E1A4
square
#5645E1 #E14582 #D0E145 #45E1A4
split-complementary
#5645E1 #E1A445 #82E145
monochromatic
#251894 #3320C8 #5645E1 #867AE9 #B6AEF2

Accessibility & contrast

On white

6.30
#5645E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#5645E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5645E1
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5645E1#FFFFFF#000000##FFFFFF
##5645E11.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E6
Deuteranopia (green-blind)
#005ADE
Tritanopia (blue-blind)
#006F8E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5645e1;
/* rgb */ color: rgb(86, 69, 225);
/* oklch */ color: oklch(51.0% 0.225 279.7);
Tailwind
colors: {
  custom: {
    50: '#957bec',
    500: '#5645e1',
    950: '#000000',
  },
}
SCSS
$custom: #5645e1;
$custom-light: #957bec;
$custom-dark: #000000;
JSON
{
  "hex": "#5645e1",
  "rgb": {
    "r": 86,
    "g": 69,
    "b": 225
  },
  "hsl": {
    "h": 246.538,
    "s": 72.222,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51046,
    "c": 0.22491,
    "h": 279.7
  },
  "luminance": 0.11671
}

Semantic roles & 50–950 ramp

primary
#5645E1
secondary
#D9E0A2
accent
#EF39DB
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5645E1

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

Preview Lab → · Contrast checker → · Palette generator →

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