#645782#645782

#645782 is a mid, moderate violet. Relative luminance 0.111; OKLCH L 48.7% C 0.069 H 297.7°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#645782
RGBrgb(100, 87, 130)
HSLhsl(258, 20%, 43%)
HSVhsv(258, 33%, 51%)
CMYKcmyk(23.1%, 33.1%, 0%, 49%)
CIE-LABlab(39.81, 15.00, -22.18)
CIE-LCHlch(39.81, 26.78, 304.07°)
OKLaboklab(48.7% 0.0322 -0.0613)
OKLCHoklch(48.7% 0.069 297.7)
XYZxyz(12.6921, 11.1373, 22.5958)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645782 #758257
analogous
#575F82 #645782 #7A5782
triadic
#645782 #826457 #578264
tetradic
#645782 #82575F #758257 #57827A
square
#645782 #82575F #758257 #57827A
split-complementary
#645782 #827A57 #5F8257
monochromatic
#2C2639 #483E5D #645782 #8274A2 #A399BB

Accessibility & contrast

On white

6.51
#645782 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#645782 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645782
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645782#FFFFFF#000000##FFFFFF
##6457821.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5E84
Deuteranopia (green-blind)
#4F5D81
Tritanopia (blue-blind)
#5E5E67
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #645782;
/* rgb */ color: rgb(100, 87, 130);
/* oklch */ color: oklch(48.7% 0.069 297.7);
Tailwind
colors: {
  custom: {
    50: '#9186a6',
    500: '#645782',
    950: '#000000',
  },
}
SCSS
$custom: #645782;
$custom-light: #9186a6;
$custom-dark: #000000;
JSON
{
  "hex": "#645782",
  "rgb": {
    "r": 100,
    "g": 87,
    "b": 130
  },
  "hsl": {
    "h": 258.14,
    "s": 19.816,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48697,
    "c": 0.06924,
    "h": 297.7
  },
  "luminance": 0.11137
}

Semantic roles & 50–950 ramp

primary
#645782
secondary
#A0A88C
accent
#BC6BA4
background
#F8F8FA
surface
#F0EFF4
border
#CBCACE
text
#0D0B0F
muted
#7D7C7F

Preview Lab

Preview with #645782

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

Preview Lab → · Contrast checker → · Palette generator →

#645782 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva