#645DB7#645DB7

#645DB7 is a mid, vivid blue. Relative luminance 0.140; OKLCH L 52.9% C 0.137 H 284.2°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#645DB7
RGBrgb(100, 93, 183)
HSLhsl(245, 38%, 54%)
HSVhsv(245, 49%, 72%)
CMYKcmyk(45.4%, 49.2%, 0%, 28.2%)
CIE-LABlab(44.17, 26.25, -46.93)
CIE-LCHlch(44.17, 53.77, 299.23°)
OKLaboklab(52.92% 0.0337 -0.1332)
OKLCHoklch(52.92% 0.137 284.2)
XYZxyz(17.7146, 13.9561, 46.5510)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645DB7 #B0B75D
analogous
#5D83B7 #645DB7 #915DB7
triadic
#645DB7 #B7645D #5DB764
tetradic
#645DB7 #B75D83 #B0B75D #5DB791
square
#645DB7 #B75D83 #B0B75D #5DB791
split-complementary
#645DB7 #B7915D #83B75D
monochromatic
#342F6A #494295 #645DB7 #8D87CA #B5B2DD

Accessibility & contrast

On white

5.54
#645DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#645DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645DB7
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645DB7#FFFFFF#000000##FFFFFF
##645DB71.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#376BBA
Deuteranopia (green-blind)
#3366B5
Tritanopia (blue-blind)
#497081
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #645db7;
/* rgb */ color: rgb(100, 93, 183);
/* oklch */ color: oklch(52.9% 0.137 284.2);
Tailwind
colors: {
  custom: {
    50: '#958bcd',
    500: '#645db7',
    950: '#000000',
  },
}
SCSS
$custom: #645db7;
$custom-light: #958bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#645db7",
  "rgb": {
    "r": 100,
    "g": 93,
    "b": 183
  },
  "hsl": {
    "h": 244.667,
    "s": 38.462,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52916,
    "c": 0.13743,
    "h": 284.2
  },
  "luminance": 0.13957
}

Semantic roles & 50–950 ramp

primary
#645DB7
secondary
#C8CBA5
accent
#CE59C5
background
#F9F8FC
surface
#F2F0F9
border
#CCCBD2
text
#0E0C13
muted
#7E7D82

Preview Lab

Preview with #645DB7

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

Preview Lab → · Contrast checker → · Palette generator →

#645DB7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva