#5645E7#5645E7

#5645E7 is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.6% C 0.232 H 279.2°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5645E7
RGBrgb(86, 69, 231)
HSLhsl(246, 77%, 59%)
HSVhsv(246, 70%, 91%)
CMYKcmyk(62.8%, 70.1%, 0%, 9.4%)
CIE-LABlab(41.22, 52.65, -79.40)
CIE-LCHlch(41.22, 95.27, 303.55°)
OKLaboklab(51.59% 0.037 -0.2291)
OKLCHoklch(51.59% 0.232 279.2)
XYZxyz(20.3851, 12.0026, 76.8283)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5645E7 #D6E745
analogous
#4585E7 #5645E7 #A745E7
triadic
#5645E7 #E75645 #45E756
tetradic
#5645E7 #E74585 #D6E745 #45E7A7
square
#5645E7 #E74585 #D6E745 #45E7A7
split-complementary
#5645E7 #E7A745 #85E745
monochromatic
#23149D #2F1BD4 #5645E7 #877BEE #B9B1F5

Accessibility & contrast

On white

6.18
#5645E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5645E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5645E7
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5645E7#FFFFFF#000000##FFFFFF
##5645E71.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EC
Deuteranopia (green-blind)
#005BE4
Tritanopia (blue-blind)
#007191
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5645e7;
/* rgb */ color: rgb(86, 69, 231);
/* oklch */ color: oklch(51.6% 0.232 279.2);
Tailwind
colors: {
  custom: {
    50: '#967bf0',
    500: '#5645e7',
    950: '#000000',
  },
}
SCSS
$custom: #5645e7;
$custom-light: #967bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#5645e7",
  "rgb": {
    "r": 86,
    "g": 69,
    "b": 231
  },
  "hsl": {
    "h": 246.296,
    "s": 77.143,
    "l": 58.824
  },
  "oklch": {
    "l": 0.51591,
    "c": 0.23207,
    "h": 279.2
  },
  "luminance": 0.12004
}

Semantic roles & 50–950 ramp

primary
#5645E7
secondary
#DDE4A4
accent
#F434E0
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5645E7

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

Preview Lab → · Contrast checker → · Palette generator →

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