#5645F1#5645F1

#5645F1 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.5% C 0.244 H 278.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5645F1
RGBrgb(86, 69, 241)
HSLhsl(246, 86%, 61%)
HSVhsv(246, 71%, 95%)
CMYKcmyk(64.3%, 71.4%, 0%, 5.5%)
CIE-LABlab(42.13, 55.68, -83.56)
CIE-LCHlch(42.13, 100.41, 303.68°)
OKLaboklab(52.51% 0.0352 -0.2412)
OKLCHoklch(52.51% 0.244 278.3)
XYZxyz(21.8379, 12.5837, 84.4801)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5645F1 #E0F145
analogous
#458AF1 #5645F1 #AC45F1
triadic
#5645F1 #F15645 #45F156
tetradic
#5645F1 #F1458A #E0F145 #45F1AC
square
#5645F1 #F1458A #E0F145 #45F1AC
split-complementary
#5645F1 #F1AC45 #8AF145
monochromatic
#1D0DAE #2711E7 #5645F1 #8A7EF5 #BDB7FA

Accessibility & contrast

On white

5.97
#5645F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5645F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5645F1
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5645F1#FFFFFF#000000##FFFFFF
##5645F11.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF6
Deuteranopia (green-blind)
#005CEE
Tritanopia (blue-blind)
#007597
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5645f1;
/* rgb */ color: rgb(86, 69, 241);
/* oklch */ color: oklch(52.5% 0.244 278.3);
Tailwind
colors: {
  custom: {
    50: '#987bf7',
    500: '#5645f1',
    950: '#000000',
  },
}
SCSS
$custom: #5645f1;
$custom-light: #987bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#5645f1",
  "rgb": {
    "r": 86,
    "g": 69,
    "b": 241
  },
  "hsl": {
    "h": 245.93,
    "s": 86,
    "l": 60.784
  },
  "oklch": {
    "l": 0.52514,
    "c": 0.2438,
    "h": 278.3
  },
  "luminance": 0.12586
}

Semantic roles & 50–950 ramp

primary
#5645F1
secondary
#E3E9A8
accent
#E303CC
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5645F1

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

Preview Lab → · Contrast checker → · Palette generator →

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