#645CB7#645CB7

#645CB7 is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.7% C 0.139 H 284.6°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#645CB7
RGBrgb(100, 92, 183)
HSLhsl(245, 39%, 54%)
HSVhsv(245, 50%, 72%)
CMYKcmyk(45.4%, 49.7%, 0%, 28.2%)
CIE-LABlab(43.92, 26.87, -47.33)
CIE-LCHlch(43.92, 54.42, 299.58°)
OKLaboklab(52.73% 0.0349 -0.1344)
OKLCHoklch(52.73% 0.139 284.6)
XYZxyz(17.6274, 13.7817, 46.5219)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645CB7 #AFB75C
analogous
#5C82B7 #645CB7 #925CB7
triadic
#645CB7 #B7645C #5CB764
tetradic
#645CB7 #B75C82 #AFB75C #5CB792
square
#645CB7 #B75C82 #AFB75C #5CB792
split-complementary
#645CB7 #B7925C #82B75C
monochromatic
#342F6A #494294 #645CB7 #8C86CA #B5B1DD

Accessibility & contrast

On white

5.59
#645CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#645CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645CB7
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645CB7#FFFFFF#000000##FFFFFF
##645CB71.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#356BBA
Deuteranopia (green-blind)
#3165B5
Tritanopia (blue-blind)
#496F81
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #645cb7;
/* rgb */ color: rgb(100, 92, 183);
/* oklch */ color: oklch(52.7% 0.139 284.6);
Tailwind
colors: {
  custom: {
    50: '#958acd',
    500: '#645cb7',
    950: '#000000',
  },
}
SCSS
$custom: #645cb7;
$custom-light: #958acd;
$custom-dark: #000000;
JSON
{
  "hex": "#645cb7",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 183
  },
  "hsl": {
    "h": 245.275,
    "s": 38.723,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52727,
    "c": 0.13889,
    "h": 284.6
  },
  "luminance": 0.13783
}

Semantic roles & 50–950 ramp

primary
#645CB7
secondary
#C7CBA4
accent
#CF59C4
background
#F9F8FC
surface
#F2F0F9
border
#CCCBD2
text
#0E0B13
muted
#7E7C82

Preview Lab

Preview with #645CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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