#645DC7#645DC7

#645DC7 is a mid, vivid blue. Relative luminance 0.147; OKLCH L 54.0% C 0.160 H 282.6°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#645DC7
RGBrgb(100, 93, 199)
HSLhsl(244, 49%, 57%)
HSVhsv(244, 53%, 78%)
CMYKcmyk(49.7%, 53.3%, 0%, 22%)
CIE-LABlab(45.17, 31.13, -54.62)
CIE-LCHlch(45.17, 62.86, 299.68°)
OKLaboklab(53.98% 0.0349 -0.1558)
OKLCHoklch(53.98% 0.16 282.6)
XYZxyz(19.4756, 14.6605, 55.8253)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645DC7 #C0C75D
analogous
#5D8BC7 #645DC7 #995DC7
triadic
#645DC7 #C7645D #5DC764
tetradic
#645DC7 #C75D8B #C0C75D #5DC799
square
#645DC7 #C75D8B #C0C75D #5DC799
split-complementary
#645DC7 #C7995D #8BC75D
monochromatic
#312C7E #433BAC #645DC7 #908AD7 #BBB8E6

Accessibility & contrast

On white

5.34
#645DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#645DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645DC7
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645DC7#FFFFFF#000000##FFFFFF
##645DC71.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246ECB
Deuteranopia (green-blind)
#1B67C5
Tritanopia (blue-blind)
#3F7489
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #645dc7;
/* rgb */ color: rgb(100, 93, 199);
/* oklch */ color: oklch(54.0% 0.160 282.6);
Tailwind
colors: {
  custom: {
    50: '#978bd9',
    500: '#645dc7',
    950: '#000000',
  },
}
SCSS
$custom: #645dc7;
$custom-light: #978bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#645dc7",
  "rgb": {
    "r": 100,
    "g": 93,
    "b": 199
  },
  "hsl": {
    "h": 243.962,
    "s": 48.624,
    "l": 57.255
  },
  "oklch": {
    "l": 0.53982,
    "c": 0.1597,
    "h": 282.6
  },
  "luminance": 0.14662
}

Semantic roles & 50–950 ramp

primary
#645DC7
secondary
#D3D5AA
accent
#D850CF
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #645DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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