#645CD4#645CD4

#645CD4 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.7% C 0.179 H 281.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#645CD4
RGBrgb(100, 92, 212)
HSLhsl(244, 58%, 60%)
HSVhsv(244, 57%, 83%)
CMYKcmyk(52.8%, 56.6%, 0%, 16.9%)
CIE-LABlab(45.79, 35.75, -61.07)
CIE-LCHlch(45.79, 70.76, 300.34°)
OKLaboklab(54.73% 0.0363 -0.1748)
OKLCHoklch(54.73% 0.179 281.7)
XYZxyz(20.9627, 15.1159, 64.0876)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645CD4 #CCD45C
analogous
#5C90D4 #645CD4 #A05CD4
triadic
#645CD4 #D4645C #5CD464
tetradic
#645CD4 #D45C90 #CCD45C #5CD4A0
square
#645CD4 #D45C90 #CCD45C #5CD4A0
split-complementary
#645CD4 #D4A05C #90D45C
monochromatic
#2D2690 #3C33C0 #645CD4 #928CE1 #C0BDEE

Accessibility & contrast

On white

5.22
#645CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#645CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645CD4
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645CD4#FFFFFF#000000##FFFFFF
##645CD41.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071D8
Deuteranopia (green-blind)
#0068D1
Tritanopia (blue-blind)
#34788F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #645cd4;
/* rgb */ color: rgb(100, 92, 212);
/* oklch */ color: oklch(54.7% 0.179 281.7);
Tailwind
colors: {
  custom: {
    50: '#998ae2',
    500: '#645cd4',
    950: '#000000',
  },
}
SCSS
$custom: #645cd4;
$custom-light: #998ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#645cd4",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 244,
    "s": 58.252,
    "l": 59.608
  },
  "oklch": {
    "l": 0.54725,
    "c": 0.17857,
    "h": 281.7
  },
  "luminance": 0.15117
}

Semantic roles & 50–950 ramp

primary
#645CD4
secondary
#DADDAF
accent
#E146D7
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0F0C15
muted
#7E7D83

Preview Lab

Preview with #645CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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