#645CC8#645CC8

#645CC8 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.9% C 0.162 H 282.8°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#645CC8
RGBrgb(100, 92, 200)
HSLhsl(244, 50%, 57%)
HSVhsv(244, 54%, 78%)
CMYKcmyk(50%, 54%, 0%, 21.6%)
CIE-LABlab(44.99, 32.04, -55.48)
CIE-LCHlch(44.99, 64.07, 300.01°)
OKLaboklab(53.87% 0.0361 -0.1584)
OKLCHoklch(53.87% 0.162 282.8)
XYZxyz(19.5049, 14.5327, 56.4097)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645CC8 #C0C85C
analogous
#5C8AC8 #645CC8 #9A5CC8
triadic
#645CC8 #C8645C #5CC864
tetradic
#645CC8 #C85C8A #C0C85C #5CC89A
square
#645CC8 #C85C8A #C0C85C #5CC89A
split-complementary
#645CC8 #C89A5C #8AC85C
monochromatic
#312B7F #433AAD #645CC8 #908AD7 #BBB8E7

Accessibility & contrast

On white

5.38
#645CC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#645CC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645CC8
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645CC8#FFFFFF#000000##FFFFFF
##645CC81.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6ECC
Deuteranopia (green-blind)
#1567C6
Tritanopia (blue-blind)
#3E7489
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #645cc8;
/* rgb */ color: rgb(100, 92, 200);
/* oklch */ color: oklch(53.9% 0.162 282.8);
Tailwind
colors: {
  custom: {
    50: '#978ad9',
    500: '#645cc8',
    950: '#000000',
  },
}
SCSS
$custom: #645cc8;
$custom-light: #978ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#645cc8",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 200
  },
  "hsl": {
    "h": 244.444,
    "s": 49.541,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5387,
    "c": 0.16244,
    "h": 282.8
  },
  "luminance": 0.14534
}

Semantic roles & 50–950 ramp

primary
#645CC8
secondary
#D3D6AA
accent
#D94FCF
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #645CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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