#645FA4#645FA4

#645FA4 is a mid, moderate blue. Relative luminance 0.136; OKLCH L 52.1% C 0.107 H 285.4°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#645FA4
RGBrgb(100, 95, 164)
HSLhsl(244, 27%, 51%)
HSVhsv(244, 42%, 64%)
CMYKcmyk(39%, 42.1%, 0%, 35.7%)
CIE-LABlab(43.62, 19.38, -36.64)
CIE-LCHlch(43.62, 41.45, 297.88°)
OKLaboklab(52.15% 0.0283 -0.1031)
OKLCHoklch(52.15% 0.107 285.4)
XYZxyz(16.0467, 13.5735, 36.8892)
Luminance0.1357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FA4 #9FA45F
analogous
#5F7CA4 #645FA4 #865FA4
triadic
#645FA4 #A4645F #5FA464
tetradic
#645FA4 #A45F7C #9FA45F #5FA486
square
#645FA4 #A45F7C #9FA45F #5FA486
split-complementary
#645FA4 #A4865F #7CA45F
monochromatic
#343257 #4C487E #645FA4 #8A86BA #B0ADD0

Accessibility & contrast

On white

5.65
#645FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#645FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FA4
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FA4#FFFFFF#000000##FFFFFF
##645FA41.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4769A7
Deuteranopia (green-blind)
#4665A2
Tritanopia (blue-blind)
#526C79
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #645fa4;
/* rgb */ color: rgb(100, 95, 164);
/* oklch */ color: oklch(52.1% 0.107 285.4);
Tailwind
colors: {
  custom: {
    50: '#938cbf',
    500: '#645fa4',
    950: '#000000',
  },
}
SCSS
$custom: #645fa4;
$custom-light: #938cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#645fa4",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 164
  },
  "hsl": {
    "h": 244.348,
    "s": 27.49,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52149,
    "c": 0.10696,
    "h": 285.4
  },
  "luminance": 0.13574
}

Semantic roles & 50–950 ramp

primary
#645FA4
secondary
#BCBFA0
accent
#C464BD
background
#F9F8FB
surface
#F1F0F7
border
#CBCBD0
text
#0D0C12
muted
#7E7D81

Preview Lab

Preview with #645FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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