#645D9B#645D9B

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

Color values

HEX#645D9B
RGBrgb(100, 93, 155)
HSLhsl(247, 25%, 49%)
HSVhsv(247, 40%, 61%)
CMYKcmyk(35.5%, 40%, 0%, 39.2%)
CIE-LABlab(42.62, 18.04, -32.87)
CIE-LCHlch(42.62, 37.49, 298.76°)
OKLaboklab(51.24% 0.0293 -0.0922)
OKLCHoklch(51.24% 0.097 287.7)
XYZxyz(15.0847, 12.9042, 32.7000)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645D9B #949B5D
analogous
#5D759B #645D9B #835D9B
triadic
#645D9B #9B645D #5D9B64
tetradic
#645D9B #9B5D75 #949B5D #5D9B83
square
#645D9B #9B5D75 #949B5D #5D9B83
split-complementary
#645D9B #9B835D #759B5D
monochromatic
#332F4E #4B4675 #645D9B #8781B4 #ACA8CB

Accessibility & contrast

On white

5.86
#645D9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#645D9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645D9B
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645D9B#FFFFFF#000000##FFFFFF
##645D9B1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49669D
Deuteranopia (green-blind)
#496399
Tritanopia (blue-blind)
#566974
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #645d9b;
/* rgb */ color: rgb(100, 93, 155);
/* oklch */ color: oklch(51.2% 0.097 287.7);
Tailwind
colors: {
  custom: {
    50: '#928bb9',
    500: '#645d9b',
    950: '#000000',
  },
}
SCSS
$custom: #645d9b;
$custom-light: #928bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#645d9b",
  "rgb": {
    "r": 100,
    "g": 93,
    "b": 155
  },
  "hsl": {
    "h": 246.774,
    "s": 25,
    "l": 48.627
  },
  "oklch": {
    "l": 0.51237,
    "c": 0.09671,
    "h": 287.7
  },
  "luminance": 0.12905
}

Semantic roles & 50–950 ramp

primary
#645D9B
secondary
#B5B99B
accent
#C166B7
background
#F9F8FB
surface
#F1F0F6
border
#CBCBD0
text
#0D0C11
muted
#7E7D80

Preview Lab

Preview with #645D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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