#645A9B#645A9B

#645A9B is a mid, moderate blue. Relative luminance 0.124; OKLCH L 50.6% C 0.102 H 289.3°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#645A9B
RGBrgb(100, 90, 155)
HSLhsl(249, 27%, 48%)
HSVhsv(249, 42%, 61%)
CMYKcmyk(35.5%, 41.9%, 0%, 39.2%)
CIE-LABlab(41.83, 19.91, -34.12)
CIE-LCHlch(41.83, 39.50, 300.26°)
OKLaboklab(50.63% 0.0336 -0.0958)
OKLCHoklch(50.63% 0.102 289.3)
XYZxyz(14.8265, 12.3878, 32.6139)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645A9B #919B5A
analogous
#5A709B #645A9B #845A9B
triadic
#645A9B #9B645A #5A9B64
tetradic
#645A9B #9B5A70 #919B5A #5A9B84
square
#645A9B #9B5A70 #919B5A #5A9B84
split-complementary
#645A9B #9B845A #709B5A
monochromatic
#322D4E #4B4474 #645A9B #867EB4 #ABA5CB

Accessibility & contrast

On white

6.04
#645A9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#645A9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645A9B
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645A9B#FFFFFF#000000##FFFFFF
##645A9B1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45649D
Deuteranopia (green-blind)
#456199
Tritanopia (blue-blind)
#566673
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #645a9b;
/* rgb */ color: rgb(100, 90, 155);
/* oklch */ color: oklch(50.6% 0.102 289.3);
Tailwind
colors: {
  custom: {
    50: '#9288b9',
    500: '#645a9b',
    950: '#000000',
  },
}
SCSS
$custom: #645a9b;
$custom-light: #9288b9;
$custom-dark: #000000;
JSON
{
  "hex": "#645a9b",
  "rgb": {
    "r": 100,
    "g": 90,
    "b": 155
  },
  "hsl": {
    "h": 249.231,
    "s": 26.531,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50634,
    "c": 0.1015,
    "h": 289.3
  },
  "luminance": 0.12388
}

Semantic roles & 50–950 ramp

primary
#645A9B
secondary
#B4B898
accent
#C365B4
background
#F9F8FB
surface
#F1F0F6
border
#CBCBD0
text
#0D0B11
muted
#7E7C80

Preview Lab

Preview with #645A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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