#645AD2#645AD2

#645AD2 is a mid, vivid blue. Relative luminance 0.147; OKLCH L 54.2% C 0.179 H 282.4°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#645AD2
RGBrgb(100, 90, 210)
HSLhsl(245, 57%, 59%)
HSVhsv(245, 57%, 82%)
CMYKcmyk(52.4%, 57.1%, 0%, 17.6%)
CIE-LABlab(45.18, 36.33, -60.91)
CIE-LCHlch(45.18, 70.92, 300.81°)
OKLaboklab(54.23% 0.0384 -0.1744)
OKLCHoklch(54.23% 0.179 282.4)
XYZxyz(20.5410, 14.6736, 62.7102)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645AD2 #C8D25A
analogous
#5A8CD2 #645AD2 #A05AD2
triadic
#645AD2 #D2645A #5AD264
tetradic
#645AD2 #D25A8C #C8D25A #5AD2A0
square
#645AD2 #D25A8C #C8D25A #5AD2A0
split-complementary
#645AD2 #D2A05A #8CD25A
monochromatic
#2F268C #3F33BC #645AD2 #918ADF #BEBAEC

Accessibility & contrast

On white

5.34
#645AD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#645AD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645AD2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645AD2#FFFFFF#000000##FFFFFF
##645AD21.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#0067CF
Tritanopia (blue-blind)
#36768D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #645ad2;
/* rgb */ color: rgb(100, 90, 210);
/* oklch */ color: oklch(54.2% 0.179 282.4);
Tailwind
colors: {
  custom: {
    50: '#9989e1',
    500: '#645ad2',
    950: '#000000',
  },
}
SCSS
$custom: #645ad2;
$custom-light: #9989e1;
$custom-dark: #000000;
JSON
{
  "hex": "#645ad2",
  "rgb": {
    "r": 100,
    "g": 90,
    "b": 210
  },
  "hsl": {
    "h": 245,
    "s": 57.143,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5423,
    "c": 0.17856,
    "h": 282.4
  },
  "luminance": 0.14675
}

Semantic roles & 50–950 ramp

primary
#645AD2
secondary
#D8DCAC
accent
#E047D4
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0F0B15
muted
#7E7C83

Preview Lab

Preview with #645AD2

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

Preview Lab → · Contrast checker → · Palette generator →

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