#645CD9#645CD9

#645CD9 is a mid, vivid blue. Relative luminance 0.154; OKLCH L 55.1% C 0.185 H 281.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#645CD9
RGBrgb(100, 92, 217)
HSLhsl(244, 62%, 61%)
HSVhsv(244, 58%, 85%)
CMYKcmyk(53.9%, 57.6%, 0%, 14.9%)
CIE-LABlab(46.14, 37.29, -63.36)
CIE-LCHlch(46.14, 73.52, 300.48°)
OKLaboklab(55.09% 0.0363 -0.1816)
OKLCHoklch(55.09% 0.185 281.3)
XYZxyz(21.6032, 15.3721, 67.4609)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645CD9 #D1D95C
analogous
#5C92D9 #645CD9 #A25CD9
triadic
#645CD9 #D9645C #5CD964
tetradic
#645CD9 #D95C92 #D1D95C #5CD9A2
square
#645CD9 #D95C92 #D1D95C #5CD9A2
split-complementary
#645CD9 #D9A25C #92D95C
monochromatic
#2B2397 #392FC9 #645CD9 #938EE5 #C2BFF0

Accessibility & contrast

On white

5.15
#645CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#645CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645CD9
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645CD9#FFFFFF#000000##FFFFFF
##645CD91.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DD
Deuteranopia (green-blind)
#0069D6
Tritanopia (blue-blind)
#2E7992
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #645cd9;
/* rgb */ color: rgb(100, 92, 217);
/* oklch */ color: oklch(55.1% 0.185 281.3);
Tailwind
colors: {
  custom: {
    50: '#998ae6',
    500: '#645cd9',
    950: '#000000',
  },
}
SCSS
$custom: #645cd9;
$custom-light: #998ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#645cd9",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 217
  },
  "hsl": {
    "h": 243.84,
    "s": 62.189,
    "l": 60.588
  },
  "oklch": {
    "l": 0.55092,
    "c": 0.18517,
    "h": 281.3
  },
  "luminance": 0.15373
}

Semantic roles & 50–950 ramp

primary
#645CD9
secondary
#DDE0B1
accent
#CA1CBF
background
#FAF8FE
surface
#F3F0FC
border
#CDCBD5
text
#0F0C16
muted
#7F7D84

Preview Lab

Preview with #645CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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