#5645E4#5645E4

#5645E4 is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.3% C 0.229 H 279.5°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#5645E4
RGBrgb(86, 69, 228)
HSLhsl(246, 75%, 58%)
HSVhsv(246, 70%, 89%)
CMYKcmyk(62.3%, 69.7%, 0%, 10.6%)
CIE-LABlab(40.95, 51.74, -78.13)
CIE-LCHlch(40.95, 93.71, 303.51°)
OKLaboklab(51.32% 0.0376 -0.2254)
OKLCHoklch(51.32% 0.229 279.5)
XYZxyz(19.9650, 11.8346, 74.6159)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5645E4 #D3E445
analogous
#4583E4 #5645E4 #A545E4
triadic
#5645E4 #E45645 #45E456
tetradic
#5645E4 #E44583 #D3E445 #45E4A5
square
#5645E4 #E44583 #D3E445 #45E4A5
split-complementary
#5645E4 #E4A545 #83E445
monochromatic
#241698 #311ECE #5645E4 #877AEC #B7B0F4

Accessibility & contrast

On white

6.24
#5645E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5645E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5645E4
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5645E4#FFFFFF#000000##FFFFFF
##5645E41.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E9
Deuteranopia (green-blind)
#005AE1
Tritanopia (blue-blind)
#007090
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5645e4;
/* rgb */ color: rgb(86, 69, 228);
/* oklch */ color: oklch(51.3% 0.229 279.5);
Tailwind
colors: {
  custom: {
    50: '#957bee',
    500: '#5645e4',
    950: '#000000',
  },
}
SCSS
$custom: #5645e4;
$custom-light: #957bee;
$custom-dark: #000000;
JSON
{
  "hex": "#5645e4",
  "rgb": {
    "r": 86,
    "g": 69,
    "b": 228
  },
  "hsl": {
    "h": 246.415,
    "s": 74.648,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51317,
    "c": 0.2285,
    "h": 279.5
  },
  "luminance": 0.11836
}

Semantic roles & 50–950 ramp

primary
#5645E4
secondary
#DBE2A3
accent
#F137DD
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5645E4

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

Preview Lab → · Contrast checker → · Palette generator →

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