#645BA2#645BA2

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

Color values

HEX#645BA2
RGBrgb(100, 91, 162)
HSLhsl(248, 28%, 50%)
HSVhsv(248, 44%, 64%)
CMYKcmyk(38.3%, 43.8%, 0%, 36.5%)
CIE-LABlab(42.46, 21.29, -37.28)
CIE-LCHlch(42.46, 42.93, 299.72°)
OKLaboklab(51.24% 0.0335 -0.105)
OKLCHoklch(51.24% 0.11 287.7)
XYZxyz(15.5164, 12.7997, 35.8285)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645BA2 #99A25B
analogous
#5B76A2 #645BA2 #885BA2
triadic
#645BA2 #A2645B #5BA264
tetradic
#645BA2 #A25B76 #99A25B #5BA288
square
#645BA2 #A25B76 #99A25B #5BA288
split-complementary
#645BA2 #A2885B #76A25B
monochromatic
#342F54 #4C457B #645BA2 #8982B9 #AEA9CF

Accessibility & contrast

On white

5.90
#645BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#645BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645BA2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645BA2#FFFFFF#000000##FFFFFF
##645BA21.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4366A5
Deuteranopia (green-blind)
#4262A0
Tritanopia (blue-blind)
#536976
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #645ba2;
/* rgb */ color: rgb(100, 91, 162);
/* oklch */ color: oklch(51.2% 0.110 287.7);
Tailwind
colors: {
  custom: {
    50: '#9389be',
    500: '#645ba2',
    950: '#000000',
  },
}
SCSS
$custom: #645ba2;
$custom-light: #9389be;
$custom-dark: #000000;
JSON
{
  "hex": "#645ba2",
  "rgb": {
    "r": 100,
    "g": 91,
    "b": 162
  },
  "hsl": {
    "h": 247.606,
    "s": 28.063,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51236,
    "c": 0.11022,
    "h": 287.7
  },
  "luminance": 0.128
}

Semantic roles & 50–950 ramp

primary
#645BA2
secondary
#B9BD9C
accent
#C463B8
background
#F9F8FB
surface
#F1F0F7
border
#CBCBD0
text
#0D0B12
muted
#7E7C81

Preview Lab

Preview with #645BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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