#645FD6#645FD6

#645FD6 is a mid, vivid blue. Relative luminance 0.157; OKLCH L 55.4% C 0.177 H 280.8°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#645FD6
RGBrgb(100, 95, 214)
HSLhsl(243, 59%, 61%)
HSVhsv(243, 56%, 84%)
CMYKcmyk(53.3%, 55.6%, 0%, 16.1%)
CIE-LABlab(46.64, 34.56, -60.84)
CIE-LCHlch(46.64, 69.97, 299.60°)
OKLaboklab(55.4% 0.0332 -0.1741)
OKLCHoklch(55.4% 0.177 280.8)
XYZxyz(21.4816, 15.7475, 65.5129)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FD6 #D1D65F
analogous
#5F95D6 #645FD6 #9F5FD6
triadic
#645FD6 #D6645F #5FD664
tetradic
#645FD6 #D65F95 #D1D65F #5FD69F
square
#645FD6 #D65F95 #D1D65F #5FD69F
split-complementary
#645FD6 #D69F5F #95D65F
monochromatic
#2B2695 #3933C5 #645FD6 #9390E2 #C2C0EF

Accessibility & contrast

On white

5.06
#645FD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#645FD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FD6
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FD6#FFFFFF#000000##FFFFFF
##645FD61.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0773DA
Deuteranopia (green-blind)
#006AD4
Tritanopia (blue-blind)
#317A91
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #645fd6;
/* rgb */ color: rgb(100, 95, 214);
/* oklch */ color: oklch(55.4% 0.177 280.8);
Tailwind
colors: {
  custom: {
    50: '#998ce3',
    500: '#645fd6',
    950: '#000000',
  },
}
SCSS
$custom: #645fd6;
$custom-light: #998ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#645fd6",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 214
  },
  "hsl": {
    "h": 242.521,
    "s": 59.204,
    "l": 60.588
  },
  "oklch": {
    "l": 0.55398,
    "c": 0.17728,
    "h": 280.8
  },
  "luminance": 0.15749
}

Semantic roles & 50–950 ramp

primary
#645FD6
secondary
#DDDFB2
accent
#C71FC0
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #645FD6

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

Preview Lab → · Contrast checker → · Palette generator →

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