#645CA7#645CA7

#645CA7 is a mid, moderate blue. Relative luminance 0.132; OKLCH L 51.7% C 0.116 H 286.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#645CA7
RGBrgb(100, 92, 167)
HSLhsl(246, 30%, 51%)
HSVhsv(246, 45%, 65%)
CMYKcmyk(40.1%, 44.9%, 0%, 34.5%)
CIE-LABlab(42.99, 22.12, -39.40)
CIE-LCHlch(42.99, 45.18, 299.31°)
OKLaboklab(51.73% 0.0329 -0.1112)
OKLCHoklch(51.73% 0.116 286.5)
XYZxyz(16.0558, 13.1531, 38.2446)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645CA7 #9FA75C
analogous
#5C79A7 #645CA7 #895CA7
triadic
#645CA7 #A7645C #5CA764
tetradic
#645CA7 #A75C79 #9FA75C #5CA789
square
#645CA7 #A75C79 #9FA75C #5CA789
split-complementary
#645CA7 #A7895C #79A75C
monochromatic
#343059 #4C4580 #645CA7 #8A84BC #B0ABD2

Accessibility & contrast

On white

5.78
#645CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#645CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645CA7
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645CA7#FFFFFF#000000##FFFFFF
##645CA71.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4168AA
Deuteranopia (green-blind)
#4063A5
Tritanopia (blue-blind)
#516B79
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #645ca7;
/* rgb */ color: rgb(100, 92, 167);
/* oklch */ color: oklch(51.7% 0.116 286.5);
Tailwind
colors: {
  custom: {
    50: '#938ac1',
    500: '#645ca7',
    950: '#000000',
  },
}
SCSS
$custom: #645ca7;
$custom-light: #938ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#645ca7",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 167
  },
  "hsl": {
    "h": 246.4,
    "s": 29.88,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51729,
    "c": 0.11596,
    "h": 286.5
  },
  "luminance": 0.13154
}

Semantic roles & 50–950 ramp

primary
#645CA7
secondary
#BCC09F
accent
#C662BB
background
#F9F8FB
surface
#F2F0F7
border
#CCCBD0
text
#0D0B12
muted
#7E7C81

Preview Lab

Preview with #645CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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