#645CD5#645CD5

#645CD5 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.8% C 0.180 H 281.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#645CD5
RGBrgb(100, 92, 213)
HSLhsl(244, 59%, 60%)
HSVhsv(244, 57%, 84%)
CMYKcmyk(53.1%, 56.8%, 0%, 16.5%)
CIE-LABlab(45.86, 36.05, -61.53)
CIE-LCHlch(45.86, 71.32, 300.37°)
OKLaboklab(54.8% 0.0363 -0.1762)
OKLCHoklch(54.8% 0.18 281.6)
XYZxyz(21.0892, 15.1665, 64.7540)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645CD5 #CDD55C
analogous
#5C91D5 #645CD5 #A15CD5
triadic
#645CD5 #D5645C #5CD564
tetradic
#645CD5 #D55C91 #CDD55C #5CD5A1
square
#645CD5 #D55C91 #CDD55C #5CD5A1
split-complementary
#645CD5 #D5A15C #91D55C
monochromatic
#2D2591 #3B32C2 #645CD5 #928DE2 #C1BDEE

Accessibility & contrast

On white

5.21
#645CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#645CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645CD5
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645CD5#FFFFFF#000000##FFFFFF
##645CD51.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071D9
Deuteranopia (green-blind)
#0068D2
Tritanopia (blue-blind)
#337890
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #645cd5;
/* rgb */ color: rgb(100, 92, 213);
/* oklch */ color: oklch(54.8% 0.180 281.6);
Tailwind
colors: {
  custom: {
    50: '#998ae3',
    500: '#645cd5',
    950: '#000000',
  },
}
SCSS
$custom: #645cd5;
$custom-light: #998ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#645cd5",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 213
  },
  "hsl": {
    "h": 243.967,
    "s": 59.024,
    "l": 59.804
  },
  "oklch": {
    "l": 0.54797,
    "c": 0.17989,
    "h": 281.6
  },
  "luminance": 0.15168
}

Semantic roles & 50–950 ramp

primary
#645CD5
secondary
#DBDEAF
accent
#E246D8
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0F0C15
muted
#7E7D84

Preview Lab

Preview with #645CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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