#645B8A#645B8A

#645B8A is a mid, moderate violet. Relative luminance 0.120; OKLCH L 49.9% C 0.074 H 292.3°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#645B8A
RGBrgb(100, 91, 138)
HSLhsl(251, 21%, 45%)
HSVhsv(251, 34%, 54%)
CMYKcmyk(27.5%, 34.1%, 0%, 45.9%)
CIE-LABlab(41.26, 14.61, -24.79)
CIE-LCHlch(41.26, 28.78, 300.51°)
OKLaboklab(49.93% 0.0282 -0.0688)
OKLCHoklch(49.93% 0.074 292.3)
XYZxyz(13.5829, 12.0263, 25.6455)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645B8A #818A5B
analogous
#5B6A8A #645B8A #7B5B8A
triadic
#645B8A #8A645B #5B8A64
tetradic
#645B8A #8A5B6A #818A5B #5B8A7B
square
#645B8A #8A5B6A #818A5B #5B8A7B
split-complementary
#645B8A #8A7B5B #6A8A5B
monochromatic
#2F2A40 #494365 #645B8A #837BA8 #A69FC0

Accessibility & contrast

On white

6.17
#645B8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#645B8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645B8A
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645B8A#FFFFFF#000000##FFFFFF
##645B8A1.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F628C
Deuteranopia (green-blind)
#4F6089
Tritanopia (blue-blind)
#5C636C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #645b8a;
/* rgb */ color: rgb(100, 91, 138);
/* oklch */ color: oklch(49.9% 0.074 292.3);
Tailwind
colors: {
  custom: {
    50: '#9189ac',
    500: '#645b8a',
    950: '#000000',
  },
}
SCSS
$custom: #645b8a;
$custom-light: #9189ac;
$custom-dark: #000000;
JSON
{
  "hex": "#645b8a",
  "rgb": {
    "r": 100,
    "g": 91,
    "b": 138
  },
  "hsl": {
    "h": 251.489,
    "s": 20.524,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49926,
    "c": 0.07437,
    "h": 292.3
  },
  "luminance": 0.12026
}

Semantic roles & 50–950 ramp

primary
#645B8A
secondary
#A9AE93
accent
#BD6BAD
background
#F9F8FA
surface
#F1F0F4
border
#CBCBCE
text
#0D0B10
muted
#7E7C7F

Preview Lab

Preview with #645B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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