#645D9A#645D9A

#645D9A is a mid, moderate blue. Relative luminance 0.129; OKLCH L 51.2% C 0.095 H 287.8°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#645D9A
RGBrgb(100, 93, 154)
HSLhsl(247, 25%, 48%)
HSVhsv(247, 40%, 60%)
CMYKcmyk(35.1%, 39.6%, 0%, 39.6%)
CIE-LABlab(42.57, 17.76, -32.35)
CIE-LCHlch(42.57, 36.91, 298.77°)
OKLaboklab(51.18% 0.0291 -0.0907)
OKLCHoklch(51.18% 0.095 287.8)
XYZxyz(15.0011, 12.8707, 32.2595)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645D9A #939A5D
analogous
#5D749A #645D9A #825D9A
triadic
#645D9A #9A645D #5D9A64
tetradic
#645D9A #9A5D74 #939A5D #5D9A82
square
#645D9A #9A5D74 #939A5D #5D9A82
split-complementary
#645D9A #9A825D #749A5D
monochromatic
#322F4E #4B4674 #645D9A #8781B3 #ABA7CA

Accessibility & contrast

On white

5.88
#645D9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#645D9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645D9A
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645D9A#FFFFFF#000000##FFFFFF
##645D9A1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A669C
Deuteranopia (green-blind)
#496399
Tritanopia (blue-blind)
#566874
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #645d9a;
/* rgb */ color: rgb(100, 93, 154);
/* oklch */ color: oklch(51.2% 0.095 287.8);
Tailwind
colors: {
  custom: {
    50: '#928bb8',
    500: '#645d9a',
    950: '#000000',
  },
}
SCSS
$custom: #645d9a;
$custom-light: #928bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#645d9a",
  "rgb": {
    "r": 100,
    "g": 93,
    "b": 154
  },
  "hsl": {
    "h": 246.885,
    "s": 24.696,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51182,
    "c": 0.09522,
    "h": 287.8
  },
  "luminance": 0.12871
}

Semantic roles & 50–950 ramp

primary
#645D9A
secondary
#B5B89B
accent
#C167B7
background
#F9F8FB
surface
#F1F0F6
border
#CBCBD0
text
#0D0B11
muted
#7E7C80

Preview Lab

Preview with #645D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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