#645FA1#645FA1

#645FA1 is a mid, moderate blue. Relative luminance 0.135; OKLCH L 52.0% C 0.103 H 285.7°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#645FA1
RGBrgb(100, 95, 161)
HSLhsl(245, 26%, 50%)
HSVhsv(245, 41%, 63%)
CMYKcmyk(37.9%, 41%, 0%, 36.9%)
CIE-LABlab(43.46, 18.52, -35.11)
CIE-LCHlch(43.46, 39.70, 297.80°)
OKLaboklab(51.98% 0.0278 -0.0987)
OKLCHoklch(51.98% 0.103 285.7)
XYZxyz(15.7790, 13.4664, 35.4792)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FA1 #9CA15F
analogous
#5F7BA1 #645FA1 #855FA1
triadic
#645FA1 #A1645F #5FA164
tetradic
#645FA1 #A15F7B #9CA15F #5FA185
square
#645FA1 #A15F7B #9CA15F #5FA185
split-complementary
#645FA1 #A1855F #7BA15F
monochromatic
#343154 #4C487B #645FA1 #8986B8 #AFACCE

Accessibility & contrast

On white

5.69
#645FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#645FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FA1
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FA1#FFFFFF#000000##FFFFFF
##645FA11.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4969A4
Deuteranopia (green-blind)
#48659F
Tritanopia (blue-blind)
#536C78
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #645fa1;
/* rgb */ color: rgb(100, 95, 161);
/* oklch */ color: oklch(52.0% 0.103 285.7);
Tailwind
colors: {
  custom: {
    50: '#938cbd',
    500: '#645fa1',
    950: '#000000',
  },
}
SCSS
$custom: #645fa1;
$custom-light: #938cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#645fa1",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 161
  },
  "hsl": {
    "h": 244.545,
    "s": 25.984,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51978,
    "c": 0.10252,
    "h": 285.7
  },
  "luminance": 0.13467
}

Semantic roles & 50–950 ramp

primary
#645FA1
secondary
#BABD9F
accent
#C265BB
background
#F9F8FB
surface
#F1F0F6
border
#CBCBD0
text
#0D0C12
muted
#7E7D81

Preview Lab

Preview with #645FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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