#645795#645795

#645795 is a mid, moderate violet. Relative luminance 0.117; OKLCH L 49.7% C 0.098 H 292.1°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#645795
RGBrgb(100, 87, 149)
HSLhsl(253, 26%, 46%)
HSVhsv(253, 42%, 58%)
CMYKcmyk(32.9%, 41.6%, 0%, 41.6%)
CIE-LABlab(40.73, 20.09, -32.25)
CIE-LCHlch(40.73, 38.00, 301.92°)
OKLaboklab(49.7% 0.0367 -0.0904)
OKLCHoklch(49.7% 0.098 292.1)
XYZxyz(14.0872, 11.6954, 29.9432)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645795 #889557
analogous
#576995 #645795 #835795
triadic
#645795 #956457 #579564
tetradic
#645795 #955769 #889557 #579583
square
#645795 #955769 #889557 #579583
split-complementary
#645795 #958357 #699557
monochromatic
#302A48 #4A406E #645795 #8479B1 #A89FC7

Accessibility & contrast

On white

6.29
#645795 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#645795 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645795
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645795#FFFFFF#000000##FFFFFF
##6457951.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446197
Deuteranopia (green-blind)
#455F93
Tritanopia (blue-blind)
#59626F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #645795;
/* rgb */ color: rgb(100, 87, 149);
/* oklch */ color: oklch(49.7% 0.098 292.1);
Tailwind
colors: {
  custom: {
    50: '#9286b4',
    500: '#645795',
    950: '#000000',
  },
}
SCSS
$custom: #645795;
$custom-light: #9286b4;
$custom-dark: #000000;
JSON
{
  "hex": "#645795",
  "rgb": {
    "r": 100,
    "g": 87,
    "b": 149
  },
  "hsl": {
    "h": 252.581,
    "s": 26.271,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49698,
    "c": 0.09754,
    "h": 292.1
  },
  "luminance": 0.11696
}

Semantic roles & 50–950 ramp

primary
#645795
secondary
#AEB593
accent
#C365AF
background
#F9F8FB
surface
#F1EFF6
border
#CBCAD0
text
#0D0B11
muted
#7E7C80

Preview Lab

Preview with #645795

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

Preview Lab → · Contrast checker → · Palette generator →

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