#645794#645794

#645794 is a mid, moderate violet. Relative luminance 0.117; OKLCH L 49.6% C 0.096 H 292.3°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#645794
RGBrgb(100, 87, 148)
HSLhsl(253, 26%, 46%)
HSVhsv(253, 41%, 58%)
CMYKcmyk(32.4%, 41.2%, 0%, 42%)
CIE-LABlab(40.68, 19.81, -31.73)
CIE-LCHlch(40.68, 37.41, 301.98°)
OKLaboklab(49.64% 0.0365 -0.0889)
OKLCHoklch(49.64% 0.096 292.3)
XYZxyz(14.0077, 11.6636, 29.5245)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645794 #879457
analogous
#576894 #645794 #825794
triadic
#645794 #946457 #579464
tetradic
#645794 #945768 #879457 #579482
square
#645794 #945768 #879457 #579482
split-complementary
#645794 #948257 #689457
monochromatic
#302A47 #4A406D #645794 #8478B0 #A79FC7

Accessibility & contrast

On white

6.30
#645794 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#645794 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645794
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645794#FFFFFF#000000##FFFFFF
##6457941.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456196
Deuteranopia (green-blind)
#465F92
Tritanopia (blue-blind)
#59626E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #645794;
/* rgb */ color: rgb(100, 87, 148);
/* oklch */ color: oklch(49.6% 0.096 292.3);
Tailwind
colors: {
  custom: {
    50: '#9286b3',
    500: '#645794',
    950: '#000000',
  },
}
SCSS
$custom: #645794;
$custom-light: #9286b3;
$custom-dark: #000000;
JSON
{
  "hex": "#645794",
  "rgb": {
    "r": 100,
    "g": 87,
    "b": 148
  },
  "hsl": {
    "h": 252.787,
    "s": 25.957,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49642,
    "c": 0.09606,
    "h": 292.3
  },
  "luminance": 0.11664
}

Semantic roles & 50–950 ramp

primary
#645794
secondary
#ADB493
accent
#C265AF
background
#F9F8FB
surface
#F1EFF6
border
#CBCAD0
text
#0D0B11
muted
#7E7C80

Preview Lab

Preview with #645794

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

Preview Lab → · Contrast checker → · Palette generator →

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