#645FA7#645FA7

#645FA7 is a mid, moderate blue. Relative luminance 0.137; OKLCH L 52.3% C 0.111 H 285.0°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#645FA7
RGBrgb(100, 95, 167)
HSLhsl(244, 29%, 51%)
HSVhsv(244, 43%, 65%)
CMYKcmyk(40.1%, 43.1%, 0%, 34.5%)
CIE-LABlab(43.78, 20.26, -38.16)
CIE-LCHlch(43.78, 43.20, 297.96°)
OKLaboklab(52.32% 0.0289 -0.1076)
OKLCHoklch(52.32% 0.111 285)
XYZxyz(16.3208, 13.6832, 38.3329)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FA7 #A2A75F
analogous
#5F7EA7 #645FA7 #885FA7
triadic
#645FA7 #A7645F #5FA764
tetradic
#645FA7 #A75F7E #A2A75F #5FA788
square
#645FA7 #A75F7E #A2A75F #5FA788
split-complementary
#645FA7 #A7885F #7EA75F
monochromatic
#34325A #4B4782 #645FA7 #8A86BD #B1AED2

Accessibility & contrast

On white

5.62
#645FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#645FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FA7
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FA7#FFFFFF#000000##FFFFFF
##645FA71.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466AAA
Deuteranopia (green-blind)
#4465A5
Tritanopia (blue-blind)
#516D7B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #645fa7;
/* rgb */ color: rgb(100, 95, 167);
/* oklch */ color: oklch(52.3% 0.111 285.0);
Tailwind
colors: {
  custom: {
    50: '#938cc1',
    500: '#645fa7',
    950: '#000000',
  },
}
SCSS
$custom: #645fa7;
$custom-light: #938cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#645fa7",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 167
  },
  "hsl": {
    "h": 244.167,
    "s": 29.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52323,
    "c": 0.11138,
    "h": 285
  },
  "luminance": 0.13684
}

Semantic roles & 50–950 ramp

primary
#645FA7
secondary
#BFC1A1
accent
#C562BE
background
#F9F8FB
surface
#F2F0F7
border
#CCCBD0
text
#0D0C12
muted
#7E7D81

Preview Lab

Preview with #645FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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