#645C8D#645C8D

#645C8D is a mid, moderate blue. Relative luminance 0.123; OKLCH L 50.3% C 0.077 H 290.8°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#645C8D
RGBrgb(100, 92, 141)
HSLhsl(250, 21%, 46%)
HSVhsv(250, 35%, 55%)
CMYKcmyk(29.1%, 34.8%, 0%, 44.7%)
CIE-LABlab(41.67, 14.79, -25.96)
CIE-LCHlch(41.67, 29.88, 299.67°)
OKLaboklab(50.29% 0.0275 -0.0722)
OKLCHoklch(50.29% 0.077 290.8)
XYZxyz(13.8892, 12.2865, 26.8339)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645C8D #858D5C
analogous
#5C6C8D #645C8D #7C5C8D
triadic
#645C8D #8D645C #5C8D64
tetradic
#645C8D #8D5C6C #858D5C #5C8D7C
square
#645C8D #8D5C6C #858D5C #5C8D7C
split-complementary
#645C8D #8D7C5C #6C8D5C
monochromatic
#2F2C43 #4A4468 #645C8D #847CAA #A7A1C2

Accessibility & contrast

On white

6.07
#645C8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #645C8D
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645C8D#FFFFFF#000000##FFFFFF
##645C8D1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F638F
Deuteranopia (green-blind)
#4F618C
Tritanopia (blue-blind)
#5B656E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #645c8d;
/* rgb */ color: rgb(100, 92, 141);
/* oklch */ color: oklch(50.3% 0.077 290.8);
Tailwind
colors: {
  custom: {
    50: '#918aae',
    500: '#645c8d',
    950: '#000000',
  },
}
SCSS
$custom: #645c8d;
$custom-light: #918aae;
$custom-dark: #000000;
JSON
{
  "hex": "#645c8d",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 141
  },
  "hsl": {
    "h": 249.796,
    "s": 21.03,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50286,
    "c": 0.07724,
    "h": 290.8
  },
  "luminance": 0.12287
}

Semantic roles & 50–950 ramp

primary
#645C8D
secondary
#ACB095
accent
#BE6AB0
background
#F9F8FA
surface
#F1F0F4
border
#CBCBCE
text
#0D0B10
muted
#7E7C7F

Preview Lab

Preview with #645C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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