#645BC5#645BC5

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

Color values

HEX#645BC5
RGBrgb(100, 91, 197)
HSLhsl(245, 48%, 56%)
HSVhsv(245, 54%, 77%)
CMYKcmyk(49.2%, 53.8%, 0%, 22.7%)
CIE-LABlab(44.55, 31.73, -54.45)
CIE-LCHlch(44.55, 63.02, 300.23°)
OKLaboklab(53.48% 0.0371 -0.1554)
OKLCHoklch(53.48% 0.16 283.4)
XYZxyz(19.0716, 14.2217, 54.5526)
Luminance0.1422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645BC5 #BCC55B
analogous
#5B87C5 #645BC5 #995BC5
triadic
#645BC5 #C5645B #5BC564
tetradic
#645BC5 #C55B87 #BCC55B #5BC599
square
#645BC5 #C55B87 #BCC55B #5BC599
split-complementary
#645BC5 #C5995B #87C55B
monochromatic
#322B7A #443BA8 #645BC5 #8F88D5 #B9B5E5

Accessibility & contrast

On white

5.46
#645BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#645BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645BC5
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645BC5#FFFFFF#000000##FFFFFF
##645BC51.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216DC9
Deuteranopia (green-blind)
#1966C3
Tritanopia (blue-blind)
#417287
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #645bc5;
/* rgb */ color: rgb(100, 91, 197);
/* oklch */ color: oklch(53.5% 0.160 283.4);
Tailwind
colors: {
  custom: {
    50: '#9789d7',
    500: '#645bc5',
    950: '#000000',
  },
}
SCSS
$custom: #645bc5;
$custom-light: #9789d7;
$custom-dark: #000000;
JSON
{
  "hex": "#645bc5",
  "rgb": {
    "r": 100,
    "g": 91,
    "b": 197
  },
  "hsl": {
    "h": 245.094,
    "s": 47.748,
    "l": 56.471
  },
  "oklch": {
    "l": 0.53481,
    "c": 0.15973,
    "h": 283.4
  },
  "luminance": 0.14223
}

Semantic roles & 50–950 ramp

primary
#645BC5
secondary
#D0D4A8
accent
#D750CC
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0E0B14
muted
#7E7C83

Preview Lab

Preview with #645BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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