#645BC4#645BC4

#645BC4 is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.4% C 0.158 H 283.5°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#645BC4
RGBrgb(100, 91, 196)
HSLhsl(245, 47%, 56%)
HSVhsv(245, 54%, 77%)
CMYKcmyk(49%, 53.6%, 0%, 23.1%)
CIE-LABlab(44.48, 31.43, -53.98)
CIE-LCHlch(44.48, 62.46, 300.21°)
OKLaboklab(53.41% 0.037 -0.154)
OKLCHoklch(53.41% 0.158 283.5)
XYZxyz(18.9574, 14.1761, 53.9512)
Luminance0.1418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645BC4 #BBC45B
analogous
#5B87C4 #645BC4 #995BC4
triadic
#645BC4 #C4645B #5BC464
tetradic
#645BC4 #C45B87 #BBC45B #5BC499
square
#645BC4 #C45B87 #BBC45B #5BC499
split-complementary
#645BC4 #C4995B #87C45B
monochromatic
#322C79 #453CA6 #645BC4 #8F88D4 #B9B5E4

Accessibility & contrast

On white

5.48
#645BC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #645BC4
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645BC4#FFFFFF#000000##FFFFFF
##645BC41.005.483.845.48
#FFFFFF5.481.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#236DC8
Deuteranopia (green-blind)
#1B66C2
Tritanopia (blue-blind)
#417287
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #645bc4;
/* rgb */ color: rgb(100, 91, 196);
/* oklch */ color: oklch(53.4% 0.158 283.5);
Tailwind
colors: {
  custom: {
    50: '#9789d6',
    500: '#645bc4',
    950: '#000000',
  },
}
SCSS
$custom: #645bc4;
$custom-light: #9789d6;
$custom-dark: #000000;
JSON
{
  "hex": "#645bc4",
  "rgb": {
    "r": 100,
    "g": 91,
    "b": 196
  },
  "hsl": {
    "h": 245.143,
    "s": 47.085,
    "l": 56.275
  },
  "oklch": {
    "l": 0.53412,
    "c": 0.15837,
    "h": 283.5
  },
  "luminance": 0.14177
}

Semantic roles & 50–950 ramp

primary
#645BC4
secondary
#CFD3A8
accent
#D751CB
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0E0B14
muted
#7E7C83

Preview Lab

Preview with #645BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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