#645C8E#645C8E

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

Color values

HEX#645C8E
RGBrgb(100, 92, 142)
HSLhsl(250, 21%, 46%)
HSVhsv(250, 35%, 56%)
CMYKcmyk(29.6%, 35.2%, 0%, 44.3%)
CIE-LABlab(41.71, 15.06, -26.49)
CIE-LCHlch(41.71, 30.48, 299.62°)
OKLaboklab(50.34% 0.0277 -0.0737)
OKLCHoklch(50.34% 0.079 290.6)
XYZxyz(13.9639, 12.3164, 27.2275)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645C8E #868E5C
analogous
#5C6D8E #645C8E #7D5C8E
triadic
#645C8E #8E645C #5C8E64
tetradic
#645C8E #8E5C6D #868E5C #5C8E7D
square
#645C8E #8E5C6D #868E5C #5C8E7D
split-complementary
#645C8E #8E7D5C #6D8E5C
monochromatic
#302C44 #4A4469 #645C8E #847DAB #A7A2C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##645C8E#FFFFFF#000000##FFFFFF
##645C8E1.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)
#4E6390
Deuteranopia (green-blind)
#4F618D
Tritanopia (blue-blind)
#5B656E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #645c8e;
/* rgb */ color: rgb(100, 92, 142);
/* oklch */ color: oklch(50.3% 0.079 290.6);
Tailwind
colors: {
  custom: {
    50: '#918aaf',
    500: '#645c8e',
    950: '#000000',
  },
}
SCSS
$custom: #645c8e;
$custom-light: #918aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#645c8e",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 142
  },
  "hsl": {
    "h": 249.6,
    "s": 21.368,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50338,
    "c": 0.07877,
    "h": 290.6
  },
  "luminance": 0.12317
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #645C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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