#645A99#645A99

#645A99 is a mid, moderate blue. Relative luminance 0.123; OKLCH L 50.5% C 0.099 H 289.7°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#645A99
RGBrgb(100, 90, 153)
HSLhsl(250, 26%, 48%)
HSVhsv(250, 41%, 60%)
CMYKcmyk(34.6%, 41.2%, 0%, 40%)
CIE-LABlab(41.72, 19.34, -33.09)
CIE-LCHlch(41.72, 38.32, 300.31°)
OKLaboklab(50.52% 0.0332 -0.0928)
OKLCHoklch(50.52% 0.099 289.7)
XYZxyz(14.6599, 12.3212, 31.7367)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645A99 #8F995A
analogous
#5A6F99 #645A99 #845A99
triadic
#645A99 #99645A #5A9964
tetradic
#645A99 #995A6F #8F995A #5A9984
square
#645A99 #995A6F #8F995A #5A9984
split-complementary
#645A99 #99845A #6F995A
monochromatic
#322D4C #4B4372 #645A99 #867DB3 #AAA4C9

Accessibility & contrast

On white

6.06
#645A99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#645A99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645A99
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645A99#FFFFFF#000000##FFFFFF
##645A991.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46649B
Deuteranopia (green-blind)
#476197
Tritanopia (blue-blind)
#576672
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #645a99;
/* rgb */ color: rgb(100, 90, 153);
/* oklch */ color: oklch(50.5% 0.099 289.7);
Tailwind
colors: {
  custom: {
    50: '#9288b7',
    500: '#645a99',
    950: '#000000',
  },
}
SCSS
$custom: #645a99;
$custom-light: #9288b7;
$custom-dark: #000000;
JSON
{
  "hex": "#645a99",
  "rgb": {
    "r": 100,
    "g": 90,
    "b": 153
  },
  "hsl": {
    "h": 249.524,
    "s": 25.926,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50521,
    "c": 0.09854,
    "h": 289.7
  },
  "luminance": 0.12322
}

Semantic roles & 50–950 ramp

primary
#645A99
secondary
#B2B798
accent
#C265B4
background
#F9F8FB
surface
#F1F0F6
border
#CBCBD0
text
#0D0B11
muted
#7E7C80

Preview Lab

Preview with #645A99

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

Preview Lab → · Contrast checker → · Palette generator →

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