#645AA6#645AA6

#645AA6 is a mid, moderate blue. Relative luminance 0.128; OKLCH L 51.3% C 0.118 H 287.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#645AA6
RGBrgb(100, 90, 166)
HSLhsl(248, 30%, 50%)
HSVhsv(248, 46%, 65%)
CMYKcmyk(39.8%, 45.8%, 0%, 34.9%)
CIE-LABlab(42.42, 23.06, -39.72)
CIE-LCHlch(42.42, 45.93, 300.14°)
OKLaboklab(51.28% 0.0354 -0.1121)
OKLCHoklch(51.28% 0.118 287.5)
XYZxyz(15.7927, 12.7743, 37.7026)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645AA6 #9CA65A
analogous
#5A76A6 #645AA6 #8A5AA6
triadic
#645AA6 #A6645A #5AA664
tetradic
#645AA6 #A65A76 #9CA65A #5AA68A
square
#645AA6 #A65A76 #9CA65A #5AA68A
split-complementary
#645AA6 #A68A5A #76A65A
monochromatic
#342F57 #4C447F #645AA6 #8982BB #AFAAD1

Accessibility & contrast

On white

5.91
#645AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#645AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645AA6
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645AA6#FFFFFF#000000##FFFFFF
##645AA61.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E66A9
Deuteranopia (green-blind)
#3E62A4
Tritanopia (blue-blind)
#526978
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #645aa6;
/* rgb */ color: rgb(100, 90, 166);
/* oklch */ color: oklch(51.3% 0.118 287.5);
Tailwind
colors: {
  custom: {
    50: '#9388c1',
    500: '#645aa6',
    950: '#000000',
  },
}
SCSS
$custom: #645aa6;
$custom-light: #9388c1;
$custom-dark: #000000;
JSON
{
  "hex": "#645aa6",
  "rgb": {
    "r": 100,
    "g": 90,
    "b": 166
  },
  "hsl": {
    "h": 247.895,
    "s": 29.921,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51279,
    "c": 0.1176,
    "h": 287.5
  },
  "luminance": 0.12775
}

Semantic roles & 50–950 ramp

primary
#645AA6
secondary
#BABF9D
accent
#C662B9
background
#F9F8FB
surface
#F2F0F7
border
#CCCBD0
text
#0D0B12
muted
#7E7C81

Preview Lab

Preview with #645AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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