#645FD7#645FD7

#645FD7 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 55.5% C 0.179 H 280.7°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#645FD7
RGBrgb(100, 95, 215)
HSLhsl(243, 60%, 61%)
HSVhsv(243, 56%, 84%)
CMYKcmyk(53.5%, 55.8%, 0%, 15.7%)
CIE-LABlab(46.71, 34.87, -61.30)
CIE-LCHlch(46.71, 70.53, 299.63°)
OKLaboklab(55.47% 0.0332 -0.1755)
OKLCHoklch(55.47% 0.179 280.7)
XYZxyz(21.6097, 15.7987, 66.1876)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FD7 #D2D75F
analogous
#5F96D7 #645FD7 #A05FD7
triadic
#645FD7 #D7645F #5FD764
tetradic
#645FD7 #D75F96 #D2D75F #5FD7A0
square
#645FD7 #D75F96 #D2D75F #5FD7A0
split-complementary
#645FD7 #D7A05F #96D75F
monochromatic
#2A2696 #3832C7 #645FD7 #9390E3 #C3C1EF

Accessibility & contrast

On white

5.05
#645FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#645FD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FD7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FD7#FFFFFF#000000##FFFFFF
##645FD71.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0273DB
Deuteranopia (green-blind)
#006AD4
Tritanopia (blue-blind)
#307B92
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #645fd7;
/* rgb */ color: rgb(100, 95, 215);
/* oklch */ color: oklch(55.5% 0.179 280.7);
Tailwind
colors: {
  custom: {
    50: '#998ce4',
    500: '#645fd7',
    950: '#000000',
  },
}
SCSS
$custom: #645fd7;
$custom-light: #998ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#645fd7",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 215
  },
  "hsl": {
    "h": 242.5,
    "s": 60,
    "l": 60.784
  },
  "oklch": {
    "l": 0.5547,
    "c": 0.1786,
    "h": 280.7
  },
  "luminance": 0.158
}

Semantic roles & 50–950 ramp

primary
#645FD7
secondary
#DEE0B2
accent
#C81EC1
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #645FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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