#645AC8#645AC8

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

Color values

HEX#645AC8
RGBrgb(100, 90, 200)
HSLhsl(245, 50%, 57%)
HSVhsv(245, 55%, 78%)
CMYKcmyk(50%, 55%, 0%, 21.6%)
CIE-LABlab(44.51, 33.26, -56.26)
CIE-LCHlch(44.51, 65.35, 300.59°)
OKLaboklab(53.51% 0.0383 -0.1607)
OKLCHoklch(53.51% 0.165 283.4)
XYZxyz(19.3339, 14.1908, 56.3527)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645AC8 #BEC85A
analogous
#5A87C8 #645AC8 #9B5AC8
triadic
#645AC8 #C8645A #5AC864
tetradic
#645AC8 #C85A87 #BEC85A #5AC89B
square
#645AC8 #C85A87 #BEC85A #5AC89B
split-complementary
#645AC8 #C89B5A #87C85A
monochromatic
#322A7E #4439AC #645AC8 #8F88D7 #BAB6E7

Accessibility & contrast

On white

5.47
#645AC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #645AC8
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645AC8#FFFFFF#000000##FFFFFF
##645AC81.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176DCC
Deuteranopia (green-blind)
#0A66C6
Tritanopia (blue-blind)
#3E7388
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #645ac8;
/* rgb */ color: rgb(100, 90, 200);
/* oklch */ color: oklch(53.5% 0.165 283.4);
Tailwind
colors: {
  custom: {
    50: '#9789d9',
    500: '#645ac8',
    950: '#000000',
  },
}
SCSS
$custom: #645ac8;
$custom-light: #9789d9;
$custom-dark: #000000;
JSON
{
  "hex": "#645ac8",
  "rgb": {
    "r": 100,
    "g": 90,
    "b": 200
  },
  "hsl": {
    "h": 245.455,
    "s": 50,
    "l": 56.863
  },
  "oklch": {
    "l": 0.53511,
    "c": 0.16518,
    "h": 283.4
  },
  "luminance": 0.14192
}

Semantic roles & 50–950 ramp

primary
#645AC8
secondary
#D1D5A8
accent
#DA4ECD
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #645AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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