#645AA5#645AA5

#645AA5 is a mid, moderate blue. Relative luminance 0.127; OKLCH L 51.2% C 0.116 H 287.7°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#645AA5
RGBrgb(100, 90, 165)
HSLhsl(248, 29%, 50%)
HSVhsv(248, 45%, 65%)
CMYKcmyk(39.4%, 45.5%, 0%, 35.3%)
CIE-LABlab(42.37, 22.77, -39.21)
CIE-LCHlch(42.37, 45.35, 300.15°)
OKLaboklab(51.22% 0.0353 -0.1107)
OKLCHoklch(51.22% 0.116 287.7)
XYZxyz(15.7013, 12.7378, 37.2214)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645AA5 #9BA55A
analogous
#5A75A5 #645AA5 #8A5AA5
triadic
#645AA5 #A5645A #5AA564
tetradic
#645AA5 #A55A75 #9BA55A #5AA58A
square
#645AA5 #A55A75 #9BA55A #5AA58A
split-complementary
#645AA5 #A58A5A #75A55A
monochromatic
#342F56 #4C447D #645AA5 #8982BB #AEA9D0

Accessibility & contrast

On white

5.92
#645AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#645AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645AA5
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645AA5#FFFFFF#000000##FFFFFF
##645AA51.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F66A8
Deuteranopia (green-blind)
#3F62A3
Tritanopia (blue-blind)
#526977
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #645aa5;
/* rgb */ color: rgb(100, 90, 165);
/* oklch */ color: oklch(51.2% 0.116 287.7);
Tailwind
colors: {
  custom: {
    50: '#9388c0',
    500: '#645aa5',
    950: '#000000',
  },
}
SCSS
$custom: #645aa5;
$custom-light: #9388c0;
$custom-dark: #000000;
JSON
{
  "hex": "#645aa5",
  "rgb": {
    "r": 100,
    "g": 90,
    "b": 165
  },
  "hsl": {
    "h": 248,
    "s": 29.412,
    "l": 50
  },
  "oklch": {
    "l": 0.51218,
    "c": 0.11615,
    "h": 287.7
  },
  "luminance": 0.12738
}

Semantic roles & 50–950 ramp

primary
#645AA5
secondary
#BABE9D
accent
#C662B8
background
#F9F8FB
surface
#F2F0F7
border
#CCCBD0
text
#0D0B12
muted
#7E7C81

Preview Lab

Preview with #645AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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