#645AB2#645AB2

#645AB2 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.0% C 0.135 H 285.9°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#645AB2
RGBrgb(100, 90, 178)
HSLhsl(247, 36%, 53%)
HSVhsv(247, 49%, 70%)
CMYKcmyk(43.8%, 49.4%, 0%, 30.2%)
CIE-LABlab(43.12, 26.60, -45.68)
CIE-LCHlch(43.12, 52.87, 300.21°)
OKLaboklab(52.03% 0.0369 -0.1296)
OKLCHoklch(52.03% 0.135 285.9)
XYZxyz(16.9453, 13.2353, 43.7727)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645AB2 #A8B25A
analogous
#5A7CB2 #645AB2 #905AB2
triadic
#645AB2 #B2645A #5AB264
tetradic
#645AB2 #B25A7C #A8B25A #5AB290
square
#645AB2 #B25A7C #A8B25A #5AB290
split-complementary
#645AB2 #B2905A #7CB25A
monochromatic
#342E63 #4A428D #645AB2 #8B84C5 #B2ADD9

Accessibility & contrast

On white

5.76
#645AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#645AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645AB2
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645AB2#FFFFFF#000000##FFFFFF
##645AB21.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3568B5
Deuteranopia (green-blind)
#3363B0
Tritanopia (blue-blind)
#4C6C7D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #645ab2;
/* rgb */ color: rgb(100, 90, 178);
/* oklch */ color: oklch(52.0% 0.135 285.9);
Tailwind
colors: {
  custom: {
    50: '#9588c9',
    500: '#645ab2',
    950: '#000000',
  },
}
SCSS
$custom: #645ab2;
$custom-light: #9588c9;
$custom-dark: #000000;
JSON
{
  "hex": "#645ab2",
  "rgb": {
    "r": 100,
    "g": 90,
    "b": 178
  },
  "hsl": {
    "h": 246.818,
    "s": 36.364,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52027,
    "c": 0.13478,
    "h": 285.9
  },
  "luminance": 0.13236
}

Semantic roles & 50–950 ramp

primary
#645AB2
secondary
#C3C7A1
accent
#CC5BC0
background
#F9F8FC
surface
#F2F0F8
border
#CCCBD1
text
#0E0B13
muted
#7E7C82

Preview Lab

Preview with #645AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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