#645E8A#645E8A

#645E8A is a mid, moderate blue. Relative luminance 0.126; OKLCH L 50.6% C 0.069 H 289.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#645E8A
RGBrgb(100, 94, 138)
HSLhsl(248, 19%, 45%)
HSVhsv(248, 32%, 54%)
CMYKcmyk(27.5%, 31.9%, 0%, 45.9%)
CIE-LABlab(42.08, 12.75, -23.52)
CIE-LCHlch(42.08, 26.75, 298.46°)
OKLaboklab(50.56% 0.0236 -0.0652)
OKLCHoklch(50.56% 0.069 289.9)
XYZxyz(13.8445, 12.5495, 25.7327)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645E8A #848A5E
analogous
#5E6E8A #645E8A #7A5E8A
triadic
#645E8A #8A645E #5E8A64
tetradic
#645E8A #8A5E6E #848A5E #5E8A7A
square
#645E8A #8A5E6E #848A5E #5E8A7A
split-complementary
#645E8A #8A7A5E #6E8A5E
monochromatic
#2F2C41 #4A4566 #645E8A #847EA7 #A6A2C0

Accessibility & contrast

On white

5.98
#645E8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#645E8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645E8A
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645E8A#FFFFFF#000000##FFFFFF
##645E8A1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52648C
Deuteranopia (green-blind)
#526289
Tritanopia (blue-blind)
#5C666E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #645e8a;
/* rgb */ color: rgb(100, 94, 138);
/* oklch */ color: oklch(50.6% 0.069 289.9);
Tailwind
colors: {
  custom: {
    50: '#918bac',
    500: '#645e8a',
    950: '#000000',
  },
}
SCSS
$custom: #645e8a;
$custom-light: #918bac;
$custom-dark: #000000;
JSON
{
  "hex": "#645e8a",
  "rgb": {
    "r": 100,
    "g": 94,
    "b": 138
  },
  "hsl": {
    "h": 248.182,
    "s": 18.966,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50555,
    "c": 0.06933,
    "h": 289.9
  },
  "luminance": 0.1255
}

Semantic roles & 50–950 ramp

primary
#645E8A
secondary
#ABAE96
accent
#BC6CB1
background
#F8F8FA
surface
#F0F0F4
border
#CBCBCE
text
#0D0C10
muted
#7D7D7F

Preview Lab

Preview with #645E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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