#645EA7#645EA7

#645EA7 is a mid, moderate blue. Relative luminance 0.135; OKLCH L 52.1% C 0.113 H 285.5°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#645EA7
RGBrgb(100, 94, 167)
HSLhsl(245, 29%, 51%)
HSVhsv(245, 44%, 65%)
CMYKcmyk(40.1%, 43.7%, 0%, 34.5%)
CIE-LABlab(43.51, 20.88, -38.58)
CIE-LCHlch(43.51, 43.86, 298.42°)
OKLaboklab(52.12% 0.0302 -0.1088)
OKLCHoklch(52.12% 0.113 285.5)
XYZxyz(16.2313, 13.5042, 38.3031)
Luminance0.1351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645EA7 #A1A75E
analogous
#5E7CA7 #645EA7 #885EA7
triadic
#645EA7 #A7645E #5EA764
tetradic
#645EA7 #A75E7C #A1A75E #5EA788
square
#645EA7 #A75E7C #A1A75E #5EA788
split-complementary
#645EA7 #A7885E #7CA75E
monochromatic
#34315A #4B4781 #645EA7 #8A86BD #B0ADD2

Accessibility & contrast

On white

5.67
#645EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#645EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645EA7
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645EA7#FFFFFF#000000##FFFFFF
##645EA71.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4469AA
Deuteranopia (green-blind)
#4265A5
Tritanopia (blue-blind)
#516C7A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #645ea7;
/* rgb */ color: rgb(100, 94, 167);
/* oklch */ color: oklch(52.1% 0.113 285.5);
Tailwind
colors: {
  custom: {
    50: '#938bc1',
    500: '#645ea7',
    950: '#000000',
  },
}
SCSS
$custom: #645ea7;
$custom-light: #938bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#645ea7",
  "rgb": {
    "r": 100,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 244.932,
    "s": 29.317,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52124,
    "c": 0.11291,
    "h": 285.5
  },
  "luminance": 0.13505
}

Semantic roles & 50–950 ramp

primary
#645EA7
secondary
#BEC1A0
accent
#C662BD
background
#F9F8FB
surface
#F2F0F7
border
#CCCBD0
text
#0D0C12
muted
#7E7D81

Preview Lab

Preview with #645EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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