#645E9D#645E9D

#645E9D is a mid, moderate blue. Relative luminance 0.131; OKLCH L 51.6% C 0.098 H 286.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#645E9D
RGBrgb(100, 94, 157)
HSLhsl(246, 25%, 49%)
HSVhsv(246, 40%, 62%)
CMYKcmyk(36.3%, 40.1%, 0%, 38.4%)
CIE-LABlab(42.99, 17.99, -33.48)
CIE-LCHlch(42.99, 38.01, 298.25°)
OKLaboklab(51.55% 0.0283 -0.0939)
OKLCHoklch(51.55% 0.098 286.8)
XYZxyz(15.3424, 13.1486, 33.6213)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645E9D #979D5E
analogous
#5E789D #645E9D #845E9D
triadic
#645E9D #9D645E #5E9D64
tetradic
#645E9D #9D5E78 #979D5E #5E9D84
square
#645E9D #9D5E78 #979D5E #5E9D84
split-complementary
#645E9D #9D845E #789D5E
monochromatic
#333050 #4C4777 #645E9D #8883B5 #ADAACC

Accessibility & contrast

On white

5.79
#645E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#645E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645E9D
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645E9D#FFFFFF#000000##FFFFFF
##645E9D1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A679F
Deuteranopia (green-blind)
#49649B
Tritanopia (blue-blind)
#556A76
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #645e9d;
/* rgb */ color: rgb(100, 94, 157);
/* oklch */ color: oklch(51.6% 0.098 286.8);
Tailwind
colors: {
  custom: {
    50: '#928bba',
    500: '#645e9d',
    950: '#000000',
  },
}
SCSS
$custom: #645e9d;
$custom-light: #928bba;
$custom-dark: #000000;
JSON
{
  "hex": "#645e9d",
  "rgb": {
    "r": 100,
    "g": 94,
    "b": 157
  },
  "hsl": {
    "h": 245.714,
    "s": 25.1,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51551,
    "c": 0.09812,
    "h": 286.8
  },
  "luminance": 0.13149
}

Semantic roles & 50–950 ramp

primary
#645E9D
secondary
#B7BA9D
accent
#C266B9
background
#F9F8FB
surface
#F1F0F6
border
#CBCBD0
text
#0D0C11
muted
#7E7D80

Preview Lab

Preview with #645E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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