#645AAA#645AAA

#645AAA is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.5% C 0.123 H 287.0°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#645AAA
RGBrgb(100, 90, 170)
HSLhsl(248, 32%, 51%)
HSVhsv(248, 47%, 67%)
CMYKcmyk(41.2%, 47.1%, 0%, 33.3%)
CIE-LABlab(42.65, 24.23, -41.72)
CIE-LCHlch(42.65, 48.25, 300.15°)
OKLaboklab(51.52% 0.036 -0.118)
OKLCHoklch(51.52% 0.123 287)
XYZxyz(16.1654, 12.9234, 39.6651)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645AAA #A0AA5A
analogous
#5A78AA #645AAA #8C5AAA
triadic
#645AAA #AA645A #5AAA64
tetradic
#645AAA #AA5A78 #A0AA5A #5AAA8C
square
#645AAA #AA5A78 #A0AA5A #5AAA8C
split-complementary
#645AAA #AA8C5A #78AA5A
monochromatic
#342F5B #4C4483 #645AAA #8A82BF #B0ABD4

Accessibility & contrast

On white

5.86
#645AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#645AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645AAA
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645AAA#FFFFFF#000000##FFFFFF
##645AAA1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C67AD
Deuteranopia (green-blind)
#3B63A8
Tritanopia (blue-blind)
#506A7A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #645aaa;
/* rgb */ color: rgb(100, 90, 170);
/* oklch */ color: oklch(51.5% 0.123 287.0);
Tailwind
colors: {
  custom: {
    50: '#9488c4',
    500: '#645aaa',
    950: '#000000',
  },
}
SCSS
$custom: #645aaa;
$custom-light: #9488c4;
$custom-dark: #000000;
JSON
{
  "hex": "#645aaa",
  "rgb": {
    "r": 100,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 247.5,
    "s": 32,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51523,
    "c": 0.12337,
    "h": 287
  },
  "luminance": 0.12924
}

Semantic roles & 50–950 ramp

primary
#645AAA
secondary
#BDC29E
accent
#C860BB
background
#F9F8FC
surface
#F2F0F8
border
#CCCBD1
text
#0D0B12
muted
#7E7C81

Preview Lab

Preview with #645AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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