#645BC7#645BC7

#645BC7 is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.6% C 0.162 H 283.2°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#645BC7
RGBrgb(100, 91, 199)
HSLhsl(245, 49%, 57%)
HSVhsv(245, 54%, 78%)
CMYKcmyk(49.7%, 54.3%, 0%, 22%)
CIE-LABlab(44.68, 32.34, -55.40)
CIE-LCHlch(44.68, 64.15, 300.28°)
OKLaboklab(53.62% 0.0372 -0.1582)
OKLCHoklch(53.62% 0.162 283.2)
XYZxyz(19.3023, 14.3140, 55.7676)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645BC7 #BEC75B
analogous
#5B88C7 #645BC7 #9A5BC7
triadic
#645BC7 #C7645B #5BC764
tetradic
#645BC7 #C75B88 #BEC75B #5BC79A
square
#645BC7 #C75B88 #BEC75B #5BC79A
split-complementary
#645BC7 #C79A5B #88C75B
monochromatic
#322B7D #443AAB #645BC7 #8F89D7 #BAB6E6

Accessibility & contrast

On white

5.44
#645BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#645BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645BC7
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645BC7#FFFFFF#000000##FFFFFF
##645BC71.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6DCB
Deuteranopia (green-blind)
#1366C5
Tritanopia (blue-blind)
#3F7388
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #645bc7;
/* rgb */ color: rgb(100, 91, 199);
/* oklch */ color: oklch(53.6% 0.162 283.2);
Tailwind
colors: {
  custom: {
    50: '#9789d9',
    500: '#645bc7',
    950: '#000000',
  },
}
SCSS
$custom: #645bc7;
$custom-light: #9789d9;
$custom-dark: #000000;
JSON
{
  "hex": "#645bc7",
  "rgb": {
    "r": 100,
    "g": 91,
    "b": 199
  },
  "hsl": {
    "h": 245,
    "s": 49.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5362,
    "c": 0.16245,
    "h": 283.2
  },
  "luminance": 0.14315
}

Semantic roles & 50–950 ramp

primary
#645BC7
secondary
#D1D5A9
accent
#D94FCD
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #645BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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