#645A9C#645A9C

#645A9C is a mid, moderate blue. Relative luminance 0.124; OKLCH L 50.7% C 0.103 H 289.1°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#645A9C
RGBrgb(100, 90, 156)
HSLhsl(249, 27%, 48%)
HSVhsv(249, 42%, 61%)
CMYKcmyk(35.9%, 42.3%, 0%, 38.8%)
CIE-LABlab(41.88, 20.19, -34.63)
CIE-LCHlch(41.88, 40.09, 300.24°)
OKLaboklab(50.69% 0.0338 -0.0973)
OKLCHoklch(50.69% 0.103 289.1)
XYZxyz(14.9108, 12.4216, 33.0580)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645A9C #929C5A
analogous
#5A719C #645A9C #855A9C
triadic
#645A9C #9C645A #5A9C64
tetradic
#645A9C #9C5A71 #929C5A #5A9C85
square
#645A9C #9C5A71 #929C5A #5A9C85
split-complementary
#645A9C #9C855A #719C5A
monochromatic
#322D4E #4B4475 #645A9C #877EB5 #ABA5CB

Accessibility & contrast

On white

6.03
#645A9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #645A9C
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645A9C#FFFFFF#000000##FFFFFF
##645A9C1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45649F
Deuteranopia (green-blind)
#45619A
Tritanopia (blue-blind)
#566673
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #645a9c;
/* rgb */ color: rgb(100, 90, 156);
/* oklch */ color: oklch(50.7% 0.103 289.1);
Tailwind
colors: {
  custom: {
    50: '#9288b9',
    500: '#645a9c',
    950: '#000000',
  },
}
SCSS
$custom: #645a9c;
$custom-light: #9288b9;
$custom-dark: #000000;
JSON
{
  "hex": "#645a9c",
  "rgb": {
    "r": 100,
    "g": 90,
    "b": 156
  },
  "hsl": {
    "h": 249.091,
    "s": 26.829,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50691,
    "c": 0.10298,
    "h": 289.1
  },
  "luminance": 0.12422
}

Semantic roles & 50–950 ramp

primary
#645A9C
secondary
#B4B999
accent
#C365B5
background
#F9F8FB
surface
#F1F0F6
border
#CBCBD0
text
#0D0B11
muted
#7E7C80

Preview Lab

Preview with #645A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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