#645FC8#645FC8

#645FC8 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.4% C 0.158 H 281.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#645FC8
RGBrgb(100, 95, 200)
HSLhsl(243, 49%, 58%)
HSVhsv(243, 53%, 78%)
CMYKcmyk(50%, 52.5%, 0%, 21.6%)
CIE-LABlab(45.72, 30.22, -54.30)
CIE-LCHlch(45.72, 62.14, 299.09°)
OKLaboklab(54.42% 0.0327 -0.1549)
OKLCHoklch(54.42% 0.158 281.9)
XYZxyz(19.7699, 15.0628, 56.4981)
Luminance0.1506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FC8 #C3C85F
analogous
#5F8EC8 #645FC8 #985FC8
triadic
#645FC8 #C8645F #5FC864
tetradic
#645FC8 #C85F8E #C3C85F #5FC898
square
#645FC8 #C85F8E #C3C85F #5FC898
split-complementary
#645FC8 #C8985F #8EC85F
monochromatic
#302C80 #413CAE #645FC8 #908DD8 #BCBAE7

Accessibility & contrast

On white

5.23
#645FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#645FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FC8
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FC8#FFFFFF#000000##FFFFFF
##645FC81.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2870CC
Deuteranopia (green-blind)
#1F69C6
Tritanopia (blue-blind)
#3E768A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #645fc8;
/* rgb */ color: rgb(100, 95, 200);
/* oklch */ color: oklch(54.4% 0.158 281.9);
Tailwind
colors: {
  custom: {
    50: '#978cd9',
    500: '#645fc8',
    950: '#000000',
  },
}
SCSS
$custom: #645fc8;
$custom-light: #978cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#645fc8",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 200
  },
  "hsl": {
    "h": 242.857,
    "s": 48.837,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54417,
    "c": 0.15831,
    "h": 281.9
  },
  "luminance": 0.15064
}

Semantic roles & 50–950 ramp

primary
#645FC8
secondary
#D4D6AC
accent
#D84FD2
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #645FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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