#645CD7#645CD7

#645CD7 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.9% C 0.183 H 281.5°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#645CD7
RGBrgb(100, 92, 215)
HSLhsl(244, 61%, 60%)
HSVhsv(244, 57%, 84%)
CMYKcmyk(53.5%, 57.2%, 0%, 15.7%)
CIE-LABlab(46.00, 36.67, -62.45)
CIE-LCHlch(46.00, 72.42, 300.42°)
OKLaboklab(54.94% 0.0363 -0.1789)
OKLCHoklch(54.94% 0.183 281.5)
XYZxyz(21.3446, 15.2686, 66.0992)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645CD7 #CFD75C
analogous
#5C92D7 #645CD7 #A15CD7
triadic
#645CD7 #D7645C #5CD764
tetradic
#645CD7 #D75C92 #CFD75C #5CD7A1
square
#645CD7 #D75C92 #CFD75C #5CD7A1
split-complementary
#645CD7 #D7A15C #92D75C
monochromatic
#2C2494 #3A30C5 #645CD7 #938DE3 #C1BEEF

Accessibility & contrast

On white

5.18
#645CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#645CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645CD7
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645CD7#FFFFFF#000000##FFFFFF
##645CD71.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DB
Deuteranopia (green-blind)
#0069D4
Tritanopia (blue-blind)
#317991
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #645cd7;
/* rgb */ color: rgb(100, 92, 215);
/* oklch */ color: oklch(54.9% 0.183 281.5);
Tailwind
colors: {
  custom: {
    50: '#998ae4',
    500: '#645cd7',
    950: '#000000',
  },
}
SCSS
$custom: #645cd7;
$custom-light: #998ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#645cd7",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 243.902,
    "s": 60.591,
    "l": 60.196
  },
  "oklch": {
    "l": 0.54944,
    "c": 0.18254,
    "h": 281.5
  },
  "luminance": 0.1527
}

Semantic roles & 50–950 ramp

primary
#645CD7
secondary
#DCDFB0
accent
#C81DBD
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #645CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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