#645C8A#645C8A

#645C8A is a mid, moderate violet. Relative luminance 0.122; OKLCH L 50.1% C 0.073 H 291.5°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#645C8A
RGBrgb(100, 92, 138)
HSLhsl(250, 20%, 45%)
HSVhsv(250, 33%, 54%)
CMYKcmyk(27.5%, 33.3%, 0%, 45.9%)
CIE-LABlab(41.53, 13.99, -24.37)
CIE-LCHlch(41.53, 28.10, 299.85°)
OKLaboklab(50.14% 0.0267 -0.0676)
OKLCHoklch(50.14% 0.073 291.5)
XYZxyz(13.6690, 12.1984, 25.6742)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645C8A #828A5C
analogous
#5C6B8A #645C8A #7B5C8A
triadic
#645C8A #8A645C #5C8A64
tetradic
#645C8A #8A5C6B #828A5C #5C8A7B
square
#645C8A #8A5C6B #828A5C #5C8A7B
split-complementary
#645C8A #8A7B5C #6B8A5C
monochromatic
#2F2B41 #494465 #645C8A #837CA7 #A6A0C0

Accessibility & contrast

On white

6.11
#645C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#645C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645C8A
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645C8A#FFFFFF#000000##FFFFFF
##645C8A1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50638C
Deuteranopia (green-blind)
#506189
Tritanopia (blue-blind)
#5C646D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #645c8a;
/* rgb */ color: rgb(100, 92, 138);
/* oklch */ color: oklch(50.1% 0.073 291.5);
Tailwind
colors: {
  custom: {
    50: '#918aac',
    500: '#645c8a',
    950: '#000000',
  },
}
SCSS
$custom: #645c8a;
$custom-light: #918aac;
$custom-dark: #000000;
JSON
{
  "hex": "#645c8a",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 138
  },
  "hsl": {
    "h": 250.435,
    "s": 20,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50135,
    "c": 0.07268,
    "h": 291.5
  },
  "luminance": 0.12199
}

Semantic roles & 50–950 ramp

primary
#645C8A
secondary
#A9AE94
accent
#BD6BAE
background
#F9F8FA
surface
#F1F0F4
border
#CBCBCE
text
#0D0B10
muted
#7E7C7F

Preview Lab

Preview with #645C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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