#645CC2#645CC2

#645CC2 is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.5% C 0.154 H 283.4°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#645CC2
RGBrgb(100, 92, 194)
HSLhsl(245, 46%, 56%)
HSVhsv(245, 53%, 76%)
CMYKcmyk(48.5%, 52.6%, 0%, 23.9%)
CIE-LABlab(44.60, 30.21, -52.63)
CIE-LCHlch(44.60, 60.69, 299.85°)
OKLaboklab(53.46% 0.0358 -0.15)
OKLCHoklch(53.46% 0.154 283.4)
XYZxyz(18.8174, 14.2577, 52.7890)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645CC2 #BAC25C
analogous
#5C87C2 #645CC2 #975CC2
triadic
#645CC2 #C2645C #5CC264
tetradic
#645CC2 #C25C87 #BAC25C #5CC297
square
#645CC2 #C25C87 #BAC25C #5CC297
split-complementary
#645CC2 #C2975C #87C25C
monochromatic
#322D77 #453DA4 #645CC2 #8E89D3 #B9B5E3

Accessibility & contrast

On white

5.45
#645CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#645CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645CC2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645CC2#FFFFFF#000000##FFFFFF
##645CC21.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286DC6
Deuteranopia (green-blind)
#2266C0
Tritanopia (blue-blind)
#437286
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #645cc2;
/* rgb */ color: rgb(100, 92, 194);
/* oklch */ color: oklch(53.5% 0.154 283.4);
Tailwind
colors: {
  custom: {
    50: '#968ad5',
    500: '#645cc2',
    950: '#000000',
  },
}
SCSS
$custom: #645cc2;
$custom-light: #968ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#645cc2",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 194
  },
  "hsl": {
    "h": 244.706,
    "s": 45.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.53457,
    "c": 0.15423,
    "h": 283.4
  },
  "luminance": 0.14259
}

Semantic roles & 50–950 ramp

primary
#645CC2
secondary
#CFD2A8
accent
#D553CB
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0E0B14
muted
#7E7C83

Preview Lab

Preview with #645CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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