#645BD7#645BD7

#645BD7 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.8% C 0.184 H 281.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#645BD7
RGBrgb(100, 91, 215)
HSLhsl(244, 61%, 60%)
HSVhsv(244, 58%, 84%)
CMYKcmyk(53.5%, 57.7%, 0%, 15.7%)
CIE-LABlab(45.77, 37.27, -62.83)
CIE-LCHlch(45.77, 73.05, 300.68°)
OKLaboklab(54.77% 0.0373 -0.18)
OKLCHoklch(54.77% 0.184 281.7)
XYZxyz(21.2586, 15.0965, 66.0705)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645BD7 #CED75B
analogous
#5B90D7 #645BD7 #A25BD7
triadic
#645BD7 #D7645B #5BD764
tetradic
#645BD7 #D75B90 #CED75B #5BD7A2
square
#645BD7 #D75B90 #CED75B #5BD7A2
split-complementary
#645BD7 #D7A25B #90D75B
monochromatic
#2C2494 #3B30C5 #645BD7 #938CE3 #C1BDEF

Accessibility & contrast

On white

5.22
#645BD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#645BD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645BD7
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645BD7#FFFFFF#000000##FFFFFF
##645BD71.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DB
Deuteranopia (green-blind)
#0068D4
Tritanopia (blue-blind)
#317890
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #645bd7;
/* rgb */ color: rgb(100, 91, 215);
/* oklch */ color: oklch(54.8% 0.184 281.7);
Tailwind
colors: {
  custom: {
    50: '#998ae4',
    500: '#645bd7',
    950: '#000000',
  },
}
SCSS
$custom: #645bd7;
$custom-light: #998ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#645bd7",
  "rgb": {
    "r": 100,
    "g": 91,
    "b": 215
  },
  "hsl": {
    "h": 244.355,
    "s": 60.784,
    "l": 60
  },
  "oklch": {
    "l": 0.54771,
    "c": 0.18384,
    "h": 281.7
  },
  "luminance": 0.15098
}

Semantic roles & 50–950 ramp

primary
#645BD7
secondary
#DBDFAF
accent
#E444D8
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #645BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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