#645AA2#645AA2

#645AA2 is a mid, moderate blue. Relative luminance 0.126; OKLCH L 51.0% C 0.112 H 288.1°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#645AA2
RGBrgb(100, 90, 162)
HSLhsl(248, 29%, 49%)
HSVhsv(248, 44%, 64%)
CMYKcmyk(38.3%, 44.4%, 0%, 36.5%)
CIE-LABlab(42.20, 21.91, -37.70)
CIE-LCHlch(42.20, 43.60, 300.16°)
OKLaboklab(51.04% 0.0348 -0.1062)
OKLCHoklch(51.04% 0.112 288.1)
XYZxyz(15.4315, 12.6298, 35.8002)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645AA2 #98A25A
analogous
#5A74A2 #645AA2 #885AA2
triadic
#645AA2 #A2645A #5AA264
tetradic
#645AA2 #A25A74 #98A25A #5AA288
square
#645AA2 #A25A74 #98A25A #5AA288
split-complementary
#645AA2 #A2885A #74A25A
monochromatic
#332E53 #4C447B #645AA2 #8880B9 #ADA8CF

Accessibility & contrast

On white

5.96
#645AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#645AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645AA2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645AA2#FFFFFF#000000##FFFFFF
##645AA21.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4165A5
Deuteranopia (green-blind)
#4162A0
Tritanopia (blue-blind)
#536876
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #645aa2;
/* rgb */ color: rgb(100, 90, 162);
/* oklch */ color: oklch(51.0% 0.112 288.1);
Tailwind
colors: {
  custom: {
    50: '#9388be',
    500: '#645aa2',
    950: '#000000',
  },
}
SCSS
$custom: #645aa2;
$custom-light: #9388be;
$custom-dark: #000000;
JSON
{
  "hex": "#645aa2",
  "rgb": {
    "r": 100,
    "g": 90,
    "b": 162
  },
  "hsl": {
    "h": 248.333,
    "s": 28.571,
    "l": 49.412
  },
  "oklch": {
    "l": 0.5104,
    "c": 0.11178,
    "h": 288.1
  },
  "luminance": 0.1263
}

Semantic roles & 50–950 ramp

primary
#645AA2
secondary
#B8BD9B
accent
#C563B7
background
#F9F8FB
surface
#F1F0F7
border
#CBCBD0
text
#0D0B12
muted
#7E7C81

Preview Lab

Preview with #645AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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