#645FA5#645FA5

#645FA5 is a mid, moderate blue. Relative luminance 0.136; OKLCH L 52.2% C 0.108 H 285.2°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#645FA5
RGBrgb(100, 95, 165)
HSLhsl(244, 28%, 51%)
HSVhsv(244, 42%, 65%)
CMYKcmyk(39.4%, 42.4%, 0%, 35.3%)
CIE-LABlab(43.67, 19.68, -37.15)
CIE-LCHlch(43.67, 42.04, 297.91°)
OKLaboklab(52.21% 0.0285 -0.1046)
OKLCHoklch(52.21% 0.108 285.2)
XYZxyz(16.1374, 13.6098, 37.3667)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FA5 #A0A55F
analogous
#5F7DA5 #645FA5 #875FA5
triadic
#645FA5 #A5645F #5FA564
tetradic
#645FA5 #A55F7D #A0A55F #5FA587
square
#645FA5 #A55F7D #A0A55F #5FA587
split-complementary
#645FA5 #A5875F #7DA55F
monochromatic
#343258 #4C487F #645FA5 #8A86BB #B0ADD1

Accessibility & contrast

On white

5.64
#645FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#645FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FA5
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FA5#FFFFFF#000000##FFFFFF
##645FA51.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4769A8
Deuteranopia (green-blind)
#4565A3
Tritanopia (blue-blind)
#526D7A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #645fa5;
/* rgb */ color: rgb(100, 95, 165);
/* oklch */ color: oklch(52.2% 0.108 285.2);
Tailwind
colors: {
  custom: {
    50: '#938cc0',
    500: '#645fa5',
    950: '#000000',
  },
}
SCSS
$custom: #645fa5;
$custom-light: #938cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#645fa5",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 165
  },
  "hsl": {
    "h": 244.286,
    "s": 28,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52206,
    "c": 0.10844,
    "h": 285.2
  },
  "luminance": 0.1361
}

Semantic roles & 50–950 ramp

primary
#645FA5
secondary
#BDBFA0
accent
#C463BD
background
#F9F8FB
surface
#F2F0F7
border
#CCCBD0
text
#0D0C12
muted
#7E7D81

Preview Lab

Preview with #645FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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